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.1 |
---|
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.1 |
---|
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 | GNOME_EXPLICIT_TRANSLATION_DOMAIN=${GTKHTML_RELEASE_STRING} |
---|
26 | AC_DEFINE_UNQUOTED(GNOME_EXPLICIT_TRANSLATION_DOMAIN, "${GNOME_EXPLICIT_TRANSLATION_DOMAIN}", [Gnome Explicit Translation Domain]) |
---|
27 | |
---|
28 | AM_INIT_AUTOMAKE($PACKAGE, 3.2.5) |
---|
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 | AC_PROG_INTLTOOL([0.30]) |
---|
37 | |
---|
38 | AC_ISC_POSIX |
---|
39 | AC_PROG_CC |
---|
40 | AC_STDC_HEADERS |
---|
41 | AM_PROG_LIBTOOL |
---|
42 | |
---|
43 | GNOME_COMPILE_WARNINGS(yes) |
---|
44 | CFLAGS="$CFLAGS $warning_flags" |
---|
45 | |
---|
46 | AC_SUBST(CFLAGS) |
---|
47 | AC_SUBST(CPPFLAGS) |
---|
48 | AC_SUBST(LDFLAGS) |
---|
49 | |
---|
50 | ALL_LINGUAS="am ar az be bg bn ca cs da de el en_CA en_GB es et eu fi fr ga gl gu he hi hr hu id it ja ko lt lv ms nb nl nn no pa pl pt pt_BR ru sk sl sq sr sr@Latn sv ta tr uk vi zh_CN zh_TW" |
---|
51 | AM_GLIB_GNU_GETTEXT |
---|
52 | |
---|
53 | GAIL_MODULES="gail >= 0.13" |
---|
54 | PKG_CHECK_MODULES(GAIL, $GAIL_MODULES) |
---|
55 | AC_SUBST(GAIL_CFLAGS) |
---|
56 | AC_SUBST(GAIL_LIBS) |
---|
57 | AC_SUBST(GAIL_MODULES) |
---|
58 | |
---|
59 | GTKHTML_MODULES="gtk+-2.0 >= 2.2.0 libgnomeui-2.0 >= 1.112.1 libgnomeprint-2.2 >= 2.2.0 libgnomeprintui-2.2 >= 2.2.1 libglade-2.0 >= 2.0.0" |
---|
60 | PKG_CHECK_MODULES(GTKHTML, $GTKHTML_MODULES) |
---|
61 | AC_SUBST(GTKHTML_CFLAGS) |
---|
62 | AC_SUBST(GTKHTML_LIBS) |
---|
63 | AC_SUBST(GTKHTML_MODULES) |
---|
64 | |
---|
65 | EDITOR_MODULES="${GTKHTML_MODULES} libbonoboui-2.0 >= 2.2.4" |
---|
66 | PKG_CHECK_MODULES(EDITOR, $EDITOR_MODULES) |
---|
67 | AC_SUBST(EDITOR_CFLAGS) |
---|
68 | AC_SUBST(EDITOR_LIBS) |
---|
69 | |
---|
70 | ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`" |
---|
71 | AC_SUBST(ORBIT_IDL) |
---|
72 | |
---|
73 | BONOBO_IDL_INCLUDES="-I`$PKG_CONFIG --variable=idldir libbonobo-2.0` -I`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`" |
---|
74 | AC_SUBST(BONOBO_IDL_INCLUDES) |
---|
75 | |
---|
76 | dnl ********************************** |
---|
77 | dnl soup for testgtkhtml |
---|
78 | dnl ********************************** |
---|
79 | |
---|
80 | PKG_CHECK_MODULES(SOUP, libsoup-2.2 >= 2.1.6, have_soup="yes", have_soup="no") |
---|
81 | if test "x$have_soup" = "xno"; then |
---|
82 | PKG_CHECK_MODULES(SOUP, soup-2.0 >= 0.7.9, [have_soup="yes" |
---|
83 | AC_DEFINE(HAVE_OLD_SOUP)], |
---|
84 | have_soup="no") |
---|
85 | fi |
---|
86 | AM_CONDITIONAL(HAVE_SOUP, test x$have_soup != xno) |
---|
87 | AC_SUBST(SOUP_CFLAGS) |
---|
88 | AC_SUBST(SOUP_LIBS) |
---|
89 | |
---|
90 | dnl ************************************************** |
---|
91 | dnl * File Chooser |
---|
92 | dnl ************************************************** |
---|
93 | 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") |
---|
94 | if test "x$enable_file_chooser" = "xyes"; then |
---|
95 | if $PKG_CONFIG --atleast-version=2.4.0 gtk+-2.0; then |
---|
96 | AC_DEFINE(USE_GTKFILECHOOSER,1,[Use new GtkFileChooser]) |
---|
97 | fi |
---|
98 | fi |
---|
99 | |
---|
100 | dnl ************************************************** |
---|
101 | dnl * Gnome Icon Theme |
---|
102 | dnl ************************************************** |
---|
103 | PKG_CHECK_MODULES(GIT, gnome-icon-theme >= 1.2.0) |
---|
104 | |
---|
105 | dnl ****************************** |
---|
106 | dnl shlib factory |
---|
107 | dnl ****************************** |
---|
108 | |
---|
109 | AC_ARG_ENABLE(shlib-factory, [ --enable-shlib-factory build editor factory as shared library [default=yes]],shlib_factory="$enableval", shlib_factory="yes") |
---|
110 | |
---|
111 | if test "x$shlib_factory" = "xyes"; then |
---|
112 | GNOME_GTKHTML_EDITOR_SHLIB=1 |
---|
113 | GNOME_GTKHTML_EDITOR_TYPE="shlib" |
---|
114 | AC_DEFINE(GNOME_GTKHTML_EDITOR_SHLIB,, [Editor shlib]) |
---|
115 | else |
---|
116 | GNOME_GTKHTML_EDITOR_TYPE="exe" |
---|
117 | fi |
---|
118 | |
---|
119 | AC_SUBST(GNOME_GTKHTML_EDITOR_TYPE) |
---|
120 | AM_CONDITIONAL(EDITOR_SHLIB, test x$shlib_factory = xyes) |
---|
121 | |
---|
122 | dnl ********************************** |
---|
123 | dnl Library version information. |
---|
124 | dnl ********************************** |
---|
125 | |
---|
126 | dnl Increment the following if the interface has additions, changes, |
---|
127 | dnl removals. |
---|
128 | GTKHTML_CURRENT=12 |
---|
129 | |
---|
130 | dnl Increment any time the source changes; set to 0 if you |
---|
131 | dnl increment CURRENT. |
---|
132 | GTKHTML_REVISION=6 |
---|
133 | |
---|
134 | dnl Increment if any interfaces have been added; set to 0 |
---|
135 | dnl if any interfaces have been removed. removal has |
---|
136 | dnl precedence over adding, so set to 0 if both happened. |
---|
137 | GTKHTML_AGE=1 |
---|
138 | |
---|
139 | AC_SUBST(GTKHTML_CURRENT) |
---|
140 | AC_SUBST(GTKHTML_REVISION) |
---|
141 | AC_SUBST(GTKHTML_AGE) |
---|
142 | |
---|
143 | dnl ************** |
---|
144 | dnl Done. |
---|
145 | dnl ************** |
---|
146 | |
---|
147 | AC_OUTPUT([ |
---|
148 | Makefile |
---|
149 | gtkhtml.spec |
---|
150 | po/Makefile.in |
---|
151 | src/Makefile |
---|
152 | src/libgtkhtml.pc |
---|
153 | a11y/Makefile |
---|
154 | components/Makefile |
---|
155 | components/html-editor/Makefile |
---|
156 | art/Makefile |
---|
157 | ]) |
---|
158 | |
---|
159 | echo " |
---|
160 | |
---|
161 | Configuration: |
---|
162 | |
---|
163 | Editor component type: ${GNOME_GTKHTML_EDITOR_TYPE} |
---|
164 | " |
---|