4
AM_CONFIG_HEADER(config.h)
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)
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)
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)
21
GETTEXT_PACKAGE=${GTKHTML_RELEASE_STRING}
22
AC_SUBST(GETTEXT_PACKAGE)
23
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Package name for gettext])
25
I18N_LIB_CFLAGS="-DGNOME_EXPLICIT_TRANSLATION_DOMAIN=\\\"${GTKHTML_RELEASE_STRING}\\\""
26
AC_SUBST(I18N_LIB_CFLAGS)
28
AM_INIT_AUTOMAKE($PACKAGE, 3.14.0)
33
dnl Due to the sed scripts being split on 90 line
34
dnl blocks, this macro needs to be right at the beggining.
36
IT_PROG_INTLTOOL([0.35.5])
45
AC_MSG_CHECKING([for Win32])
55
AC_MSG_RESULT([$os_win32])
56
AM_CONDITIONAL(OS_WIN32, [test $os_win32 = yes])
59
GNOME_COMPILE_WARNINGS(yes)
60
CFLAGS="$CFLAGS $warning_flags"
68
GAIL_MODULES="gail >= 1.1.0"
69
PKG_CHECK_MODULES(GAIL, $GAIL_MODULES)
72
AC_SUBST(GAIL_MODULES)
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)
80
if ${PKG_CONFIG} --atleast-version=1.5 pango
82
AC_DEFINE([PANGO_1_5_OR_HIGHER], [], [Means that Pango 1.5 or higher is available])
85
EDITOR_MODULES="${GTKHTML_MODULES} libbonoboui-2.0 >= 2.2.4"
86
PKG_CHECK_MODULES(EDITOR, $EDITOR_MODULES)
87
AC_SUBST(EDITOR_CFLAGS)
90
ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
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)
96
dnl **********************************
97
dnl soup for testgtkhtml
98
dnl **********************************
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)],
106
AM_CONDITIONAL(HAVE_SOUP, test x$have_soup != xno)
107
AC_SUBST(SOUP_CFLAGS)
110
dnl **************************************************
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])
120
dnl **************************************************
121
dnl * Gnome Icon Theme
122
dnl **************************************************
123
PKG_CHECK_MODULES(GIT, gnome-icon-theme >= 1.2.0)
125
dnl **************************************************
127
dnl **************************************************
128
AC_CHECK_FUNCS(regexec,,[AC_CHECK_LIB(regex,regexec,[REGEX_LIBS=-lregex],[AC_MSG_ERROR([No regex library found])])])
131
dnl ******************************
133
dnl ******************************
135
AC_ARG_ENABLE(shlib-factory, [ --enable-shlib-factory build editor factory as shared library [default=yes]],shlib_factory="$enableval", shlib_factory="yes")
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])
142
GNOME_GTKHTML_EDITOR_TYPE="exe"
145
AC_SUBST(GNOME_GTKHTML_EDITOR_TYPE)
146
AM_CONDITIONAL(EDITOR_SHLIB, test x$shlib_factory = xyes)
148
dnl **********************************
149
dnl Library version information.
150
dnl **********************************
152
dnl Increment the following if the interface has additions, changes,
156
dnl Increment any time the source changes; set to 0 if you
157
dnl increment CURRENT.
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.
165
AC_SUBST(GTKHTML_CURRENT)
166
AC_SUBST(GTKHTML_REVISION)
167
AC_SUBST(GTKHTML_AGE)
182
components/html-editor/Makefile
190
Editor component type: ${GNOME_GTKHTML_EDITOR_TYPE}