~ubuntu-branches/ubuntu/trusty/gtkhtml3.14/trusty-proposed

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-03-13 11:26:39 UTC
  • Revision ID: james.westby@ubuntu.com-20070313112639-5calgv5774i4f95v
Tags: upstream-3.14.0
ImportĀ upstreamĀ versionĀ 3.14.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl Initialization
 
2
 
 
3
AC_INIT(src/gtkhtml.c)
 
4
AM_CONFIG_HEADER(config.h)
 
5
 
 
6
PACKAGE=gtkhtml
 
7
 
 
8
GTKHTML_API_VERSION=3.14
 
9
AC_DEFINE_UNQUOTED(GTKHTML_API_VERSION, "${GTKHTML_API_VERSION}", [GtkHTML API Version])
 
10
AC_SUBST(GTKHTML_API_VERSION)
 
11
 
 
12
EDITOR_API_VERSION=3.14
 
13
AC_DEFINE_UNQUOTED(EDITOR_API_VERSION, "${EDITOR_API_VERSION}", [Editor API Version])
 
14
AC_SUBST(EDITOR_API_VERSION)
 
15
 
 
16
GTKHTML_RELEASE_STRING=${PACKAGE}-${GTKHTML_API_VERSION}
 
17
AC_DEFINE_UNQUOTED(GTKHTML_RELEASE_STRING, "${GTKHTML_RELEASE_STRING}",
 
18
                                           [GtkHTML Release String])
 
19
AC_SUBST(GTKHTML_RELEASE_STRING)
 
20
 
 
21
GETTEXT_PACKAGE=${GTKHTML_RELEASE_STRING}
 
22
AC_SUBST(GETTEXT_PACKAGE)
 
23
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Package name for gettext])
 
24
 
 
25
I18N_LIB_CFLAGS="-DGNOME_EXPLICIT_TRANSLATION_DOMAIN=\\\"${GTKHTML_RELEASE_STRING}\\\""
 
26
AC_SUBST(I18N_LIB_CFLAGS)
 
27
 
 
28
AM_INIT_AUTOMAKE($PACKAGE, 3.14.0)
 
29
 
 
30
AM_MAINTAINER_MODE
 
31
 
 
32
dnl
 
33
dnl Due to the sed scripts being split on 90 line
 
34
dnl blocks, this macro needs to be right at the beggining.
 
35
dnl
 
36
IT_PROG_INTLTOOL([0.35.5])
 
37
 
 
38
AC_ISC_POSIX
 
39
AC_PROG_CC
 
40
AC_STDC_HEADERS
 
41
AC_LIBTOOL_WIN32_DLL
 
42
AM_PROG_LIBTOOL
 
43
 
 
44
dnl Win32
 
45
AC_MSG_CHECKING([for Win32])
 
46
case "$host" in
 
47
*-mingw*)
 
48
    os_win32=yes
 
49
    SOEXT='.dll'
 
50
    ;;
 
51
*)  os_win32=no
 
52
    SOEXT='.so'
 
53
    ;;
 
54
esac
 
55
AC_MSG_RESULT([$os_win32])
 
56
AM_CONDITIONAL(OS_WIN32, [test $os_win32 = yes])
 
57
AC_SUBST(SOEXT)
 
58
 
 
59
GNOME_COMPILE_WARNINGS(yes)
 
60
CFLAGS="$CFLAGS $warning_flags"
 
61
 
 
62
AC_SUBST(CFLAGS)
 
63
AC_SUBST(CPPFLAGS)
 
64
AC_SUBST(LDFLAGS)
 
65
 
 
66
AM_GLIB_GNU_GETTEXT
 
67
 
 
68
GAIL_MODULES="gail >= 1.1.0"
 
69
PKG_CHECK_MODULES(GAIL, $GAIL_MODULES)
 
70
AC_SUBST(GAIL_CFLAGS)
 
71
AC_SUBST(GAIL_LIBS)
 
72
AC_SUBST(GAIL_MODULES)
 
73
 
 
74
GTKHTML_MODULES="libgnomeui-2.0 >= 2.0.0 gtk+-unix-print-2.0 >= 2.10.0 libglade-2.0 >= 2.0.0"
 
75
PKG_CHECK_MODULES(GTKHTML, $GTKHTML_MODULES)
 
76
AC_SUBST(GTKHTML_CFLAGS)
 
77
AC_SUBST(GTKHTML_LIBS)
 
78
AC_SUBST(GTKHTML_MODULES)
 
79
 
 
80
if ${PKG_CONFIG} --atleast-version=1.5 pango
 
81
then
 
82
        AC_DEFINE([PANGO_1_5_OR_HIGHER], [], [Means that Pango 1.5 or higher is available])
 
83
fi
 
84
 
 
85
EDITOR_MODULES="${GTKHTML_MODULES} libbonoboui-2.0 >= 2.2.4"
 
86
PKG_CHECK_MODULES(EDITOR, $EDITOR_MODULES)
 
87
AC_SUBST(EDITOR_CFLAGS)
 
88
AC_SUBST(EDITOR_LIBS)
 
89
 
 
90
ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
 
91
AC_SUBST(ORBIT_IDL)
 
92
 
 
93
BONOBO_IDL_INCLUDES="-I`$PKG_CONFIG --variable=idldir libbonobo-2.0` -I`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`"
 
94
AC_SUBST(BONOBO_IDL_INCLUDES)
 
95
 
 
96
dnl **********************************
 
97
dnl soup for testgtkhtml
 
98
dnl **********************************
 
99
 
 
100
PKG_CHECK_MODULES(SOUP, libsoup-2.2 >= 2.1.6, have_soup="yes", have_soup="no")
 
101
if test "x$have_soup" = "xno"; then
 
102
        PKG_CHECK_MODULES(SOUP, soup-2.0 >= 0.7.9, [have_soup="yes"
 
103
                                                    AC_DEFINE(HAVE_OLD_SOUP)],
 
104
                                                   have_soup="no")
 
105
fi
 
106
AM_CONDITIONAL(HAVE_SOUP, test x$have_soup != xno)
 
107
AC_SUBST(SOUP_CFLAGS)
 
108
AC_SUBST(SOUP_LIBS)
 
109
 
 
110
dnl **************************************************
 
111
dnl * File Chooser
 
112
dnl **************************************************
 
113
AC_ARG_ENABLE(file-chooser, [  --enable-file-chooser    Enable the usage of the GtkFileChooser in place of the GtkFileSelection dialog], enable_file_chooser="$enableval", enable_file_chooser="yes")
 
114
if test "x$enable_file_chooser" = "xyes"; then
 
115
  if $PKG_CONFIG --atleast-version=2.4.0 gtk+-2.0; then
 
116
    AC_DEFINE(USE_GTKFILECHOOSER,1,[Use new GtkFileChooser])
 
117
  fi
 
118
fi
 
119
 
 
120
dnl **************************************************
 
121
dnl * Gnome Icon Theme
 
122
dnl **************************************************
 
123
PKG_CHECK_MODULES(GIT, gnome-icon-theme >= 1.2.0)
 
124
 
 
125
dnl **************************************************
 
126
dnl * regex library
 
127
dnl **************************************************
 
128
AC_CHECK_FUNCS(regexec,,[AC_CHECK_LIB(regex,regexec,[REGEX_LIBS=-lregex],[AC_MSG_ERROR([No regex library found])])])
 
129
AC_SUBST(REGEX_LIBS)
 
130
 
 
131
dnl ******************************
 
132
dnl shlib factory
 
133
dnl ******************************
 
134
 
 
135
AC_ARG_ENABLE(shlib-factory, [  --enable-shlib-factory  build editor factory as shared library [default=yes]],shlib_factory="$enableval", shlib_factory="yes")
 
136
 
 
137
if test "x$shlib_factory" = "xyes"; then
 
138
        GNOME_GTKHTML_EDITOR_SHLIB=1
 
139
        GNOME_GTKHTML_EDITOR_TYPE="shlib"
 
140
        AC_DEFINE(GNOME_GTKHTML_EDITOR_SHLIB,, [Editor shlib])
 
141
else
 
142
        GNOME_GTKHTML_EDITOR_TYPE="exe"
 
143
fi
 
144
 
 
145
AC_SUBST(GNOME_GTKHTML_EDITOR_TYPE)
 
146
AM_CONDITIONAL(EDITOR_SHLIB, test x$shlib_factory = xyes)
 
147
 
 
148
dnl **********************************
 
149
dnl Library version information.
 
150
dnl **********************************
 
151
 
 
152
dnl Increment the following if the interface has additions, changes,
 
153
dnl removals.
 
154
GTKHTML_CURRENT=19
 
155
 
 
156
dnl Increment any time the source changes; set to 0 if you
 
157
dnl increment CURRENT.
 
158
GTKHTML_REVISION=0
 
159
 
 
160
dnl Increment if any interfaces have been added; set to 0
 
161
dnl if any interfaces have been removed. removal has 
 
162
dnl precedence over adding, so set to 0 if both happened.
 
163
GTKHTML_AGE=0
 
164
 
 
165
AC_SUBST(GTKHTML_CURRENT)
 
166
AC_SUBST(GTKHTML_REVISION)
 
167
AC_SUBST(GTKHTML_AGE)
 
168
 
 
169
dnl **************
 
170
dnl Done.
 
171
dnl **************
 
172
 
 
173
AC_OUTPUT([
 
174
Makefile
 
175
gtkhtml.spec
 
176
gtkhtml-zip
 
177
po/Makefile.in
 
178
src/Makefile
 
179
src/libgtkhtml.pc
 
180
a11y/Makefile
 
181
components/Makefile
 
182
components/html-editor/Makefile
 
183
art/Makefile
 
184
])
 
185
 
 
186
echo "
 
187
 
 
188
Configuration:
 
189
 
 
190
        Editor component type:          ${GNOME_GTKHTML_EDITOR_TYPE}
 
191
"