source: trunk/third/libgtkhtml/configure.in @ 21514

Revision 21514, 2.4 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21513, which included commits to RCS files with non-trunk default branches.
Line 
1AC_PREREQ(2.52)
2AC_INIT(libgtkhtml/document/htmldocument.c)
3
4AM_CONFIG_HEADER(config.h)
5
6AM_INIT_AUTOMAKE(libgtkhtml, 2.6.3)
7
8AM_MAINTAINER_MODE
9
10AC_PROG_CC
11AC_ISC_POSIX
12AC_HEADER_STDC
13AM_PROG_LIBTOOL
14
15dnl ALL_LINGUAS="hi"
16dnl AM_GNU_GETTEXT
17
18AC_ARG_ENABLE(more-warnings,
19       [  --enable-more-warnings  maximum compiler warnings],
20       set_more_warnings="$enableval",set_more_warnings=no)
21
22if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
23       echo "enable compile warnings = $set_more_warnings"
24       CFLAGS="-Wall -Wno-uninitialized \
25               -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
26               -Wnested-externs -Wpointer-arith \
27               -Wno-sign-compare -Wsign-promo -Werror \
28               $CFLAGS"
29fi
30
31AC_SUBST(CFLAGS)
32AC_SUBST(LDFLAGS)
33
34
35PKG_CHECK_MODULES(GTKHTML2, gtk+-2.0 >= 2.0.0 libxml-2.0 >= 2.4.16)
36
37
38AC_ARG_ENABLE(accessibility,
39              [  --enable-accessibility  enable accessibility support (needs gail) [default=yes]], ,
40              enable_accessibility=yes)
41
42if test x$enable_accessibility = xyes; then
43  PKG_CHECK_MODULES(GAILUTIL, gail >= 1.8, ,
44                    AC_MSG_ERROR([
45*** gail is needed for accessibility. Either install gail or turn off
46*** accessibility support using the --disable-accessibility option.]))
47
48  AC_DEFINE(ENABLE_ACCESSIBILITY, 1,
49            [Define to 1 to enable accessibility support.])
50else
51  AC_MSG_WARN([*** GtkHtml2 will be built without accessibility support.])
52fi
53
54AM_CONDITIONAL(ENABLE_ACCESSIBILITY, test x$enable_accessibility = xyes)
55
56
57PKG_CHECK_MODULES(GNOME_VFS, gnome-vfs-2.0 >= 1.9.8, have_vfs=true,
58                  AC_MSG_WARN([*** test apps will be built without GNOME VFS support.])
59                  have_vfs=false)
60
61AM_CONDITIONAL(HAVE_GNOME_VFS, test x$have_vfs = xtrue)
62
63
64AC_SUBST(GTKHTML2_CFLAGS)
65AC_SUBST(GTKHTML2_LIBS)
66AC_SUBST(GNOME_VFS_CFLAGS)
67AC_SUBST(GNOME_VFS_LIBS)
68AC_SUBST(GAILUTIL_CFLAGS)
69AC_SUBST(GAILUTIL_LIBS)
70AC_SUBST(A11Y)
71
72AC_OUTPUT([
73Makefile
74docs/Makefile
75libgtkhtml/Makefile
76libgtkhtml/css/Makefile
77libgtkhtml/document/Makefile
78libgtkhtml/dom/Makefile
79libgtkhtml/dom/core/Makefile
80libgtkhtml/dom/html/Makefile
81libgtkhtml/dom/events/Makefile
82libgtkhtml/dom/views/Makefile
83libgtkhtml/dom/traversal/Makefile
84libgtkhtml/graphics/Makefile
85libgtkhtml/layout/Makefile
86libgtkhtml/layout/html/Makefile
87libgtkhtml/util/Makefile
88libgtkhtml/view/Makefile
89libgtkhtml/a11y/Makefile
90tests/Makefile
91libgtkhtml-2.0.pc
92])
93
94
Note: See TracBrowser for help on using the repository browser.