source: trunk/third/gtkhtml3/configure.in @ 21460

Revision 21460, 4.7 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21459, which included commits to RCS files with non-trunk default branches.
Line 
1dnl Initialization
2
3AC_INIT(src/gtkhtml.c)
4AM_CONFIG_HEADER(config.h)
5
6PACKAGE=gtkhtml
7
8GTKHTML_API_VERSION=3.1
9AC_DEFINE_UNQUOTED(GTKHTML_API_VERSION, "${GTKHTML_API_VERSION}", [GtkHTML API Version])
10AC_SUBST(GTKHTML_API_VERSION)
11
12EDITOR_API_VERSION=3.1
13AC_DEFINE_UNQUOTED(EDITOR_API_VERSION, "${EDITOR_API_VERSION}", [Editor API Version])
14AC_SUBST(EDITOR_API_VERSION)
15
16GTKHTML_RELEASE_STRING=${PACKAGE}-${GTKHTML_API_VERSION}
17AC_DEFINE_UNQUOTED(GTKHTML_RELEASE_STRING, "${GTKHTML_RELEASE_STRING}",
18                                           [GtkHTML Release String])
19AC_SUBST(GTKHTML_RELEASE_STRING)
20
21GETTEXT_PACKAGE=${GTKHTML_RELEASE_STRING}
22AC_SUBST(GETTEXT_PACKAGE)
23AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Package name for gettext])
24
25GNOME_EXPLICIT_TRANSLATION_DOMAIN=${GTKHTML_RELEASE_STRING}
26AC_DEFINE_UNQUOTED(GNOME_EXPLICIT_TRANSLATION_DOMAIN, "${GNOME_EXPLICIT_TRANSLATION_DOMAIN}", [Gnome Explicit Translation Domain])
27
28AM_INIT_AUTOMAKE($PACKAGE, 3.2.5)
29
30AM_MAINTAINER_MODE
31
32dnl
33dnl Due to the sed scripts being split on 90 line
34dnl blocks, this macro needs to be right at the beggining.
35dnl
36AC_PROG_INTLTOOL([0.30])
37
38AC_ISC_POSIX
39AC_PROG_CC
40AC_STDC_HEADERS
41AM_PROG_LIBTOOL
42
43GNOME_COMPILE_WARNINGS(yes)
44CFLAGS="$CFLAGS $warning_flags"
45
46AC_SUBST(CFLAGS)
47AC_SUBST(CPPFLAGS)
48AC_SUBST(LDFLAGS)
49
50ALL_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"
51AM_GLIB_GNU_GETTEXT
52
53GAIL_MODULES="gail >= 0.13"
54PKG_CHECK_MODULES(GAIL, $GAIL_MODULES)
55AC_SUBST(GAIL_CFLAGS)
56AC_SUBST(GAIL_LIBS)
57AC_SUBST(GAIL_MODULES)
58
59GTKHTML_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"
60PKG_CHECK_MODULES(GTKHTML, $GTKHTML_MODULES)
61AC_SUBST(GTKHTML_CFLAGS)
62AC_SUBST(GTKHTML_LIBS)
63AC_SUBST(GTKHTML_MODULES)
64
65EDITOR_MODULES="${GTKHTML_MODULES} libbonoboui-2.0 >= 2.2.4"
66PKG_CHECK_MODULES(EDITOR, $EDITOR_MODULES)
67AC_SUBST(EDITOR_CFLAGS)
68AC_SUBST(EDITOR_LIBS)
69
70ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
71AC_SUBST(ORBIT_IDL)
72
73BONOBO_IDL_INCLUDES="-I`$PKG_CONFIG --variable=idldir libbonobo-2.0` -I`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`"
74AC_SUBST(BONOBO_IDL_INCLUDES)
75
76dnl **********************************
77dnl soup for testgtkhtml
78dnl **********************************
79
80PKG_CHECK_MODULES(SOUP, libsoup-2.2 >= 2.1.6, have_soup="yes", have_soup="no")
81if 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")
85fi
86AM_CONDITIONAL(HAVE_SOUP, test x$have_soup != xno)
87AC_SUBST(SOUP_CFLAGS)
88AC_SUBST(SOUP_LIBS)
89
90dnl **************************************************
91dnl * File Chooser
92dnl **************************************************
93AC_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")
94if 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
98fi
99
100dnl **************************************************
101dnl * Gnome Icon Theme
102dnl **************************************************
103PKG_CHECK_MODULES(GIT, gnome-icon-theme >= 1.2.0)
104
105dnl ******************************
106dnl shlib factory
107dnl ******************************
108
109AC_ARG_ENABLE(shlib-factory, [  --enable-shlib-factory  build editor factory as shared library [default=yes]],shlib_factory="$enableval", shlib_factory="yes")
110
111if 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])
115else
116        GNOME_GTKHTML_EDITOR_TYPE="exe"
117fi
118
119AC_SUBST(GNOME_GTKHTML_EDITOR_TYPE)
120AM_CONDITIONAL(EDITOR_SHLIB, test x$shlib_factory = xyes)
121
122dnl **********************************
123dnl Library version information.
124dnl **********************************
125 
126dnl Increment the following if the interface has additions, changes,
127dnl removals.
128GTKHTML_CURRENT=12
129
130dnl Increment any time the source changes; set to 0 if you
131dnl increment CURRENT.
132GTKHTML_REVISION=6
133
134dnl Increment if any interfaces have been added; set to 0
135dnl if any interfaces have been removed. removal has
136dnl precedence over adding, so set to 0 if both happened.
137GTKHTML_AGE=1
138
139AC_SUBST(GTKHTML_CURRENT)
140AC_SUBST(GTKHTML_REVISION)
141AC_SUBST(GTKHTML_AGE)
142
143dnl **************
144dnl Done.
145dnl **************
146
147AC_OUTPUT([
148Makefile
149gtkhtml.spec
150po/Makefile.in
151src/Makefile
152src/libgtkhtml.pc
153a11y/Makefile
154components/Makefile
155components/html-editor/Makefile
156art/Makefile
157])
158
159echo "
160
161Configuration:
162
163        Editor component type:          ${GNOME_GTKHTML_EDITOR_TYPE}
164"
Note: See TracBrowser for help on using the repository browser.