2007-05-10 Johannes Schmid <jhs@gnome.org>
[anjuta-git-plugin.git] / configure.in
blob6dde07b28aef2966cbbfab38a572b99fdcbb47ad
1 dnl Process this file with autoconf to produce a configure script.
3 AC_PREREQ(2.59)
5 m4_define(anjuta_major_version,  2)
6 m4_define(anjuta_minor_version, 1)
7 m4_define(anjuta_micro_version,  2)
8 m4_define(anjuta_version, anjuta_major_version.anjuta_minor_version.anjuta_micro_version)
10 AC_INIT(anjuta, anjuta_version, http://bugzilla.gnome.org/enter_bug.cgi?product=anjuta)
11 AC_CONFIG_SRCDIR(src/main.c)
13 AC_DEFINE(ANJUTA_MAJOR_VERSION, anjuta_major_version, [Anjuta major version])
14 AC_SUBST(ANJUTA_MAJOR_VERSION, anjuta_major_version)
15 AC_DEFINE(ANJUTA_MINOR_VERSION, anjuta_minor_version, [Anjuta minor version])
16 AC_SUBST(ANJUTA_MINOR_VERSION, anjuta_minor_version)
17 AC_DEFINE(ANJUTA_MICRO_VERSION, anjuta_micro_version, [Anjuta micro version])
18 AC_SUBST(ANJUTA_MICRO_VERSION, anjuta_micro_version)
19 AC_DEFINE(ANJUTA_VERSION, anjuta_version, [Anjuta version])
20 AC_SUBST(ANJUTA_VERSION)
22 GLIB_REQUIRED=2.8.0
23 GOBJECT_REQUIRED=2.8.0
24 GMODULE_REQUIRED=2.8.0
25 GTHREAD_REQUIRED=2.8.0
26 GDK_PIXBUF_REQUIRED=2.0.0
27 GTK_REQUIRED=2.8.0
28 ORBIT_REQUIRED=2.6.0
29 LIBGLADE_REQUIRED=2.3.0
30 GNOME_REQUIRED=2.12.0
31 GNOME_CANVAS_REQUIRED=2.12.0
32 GNOME_UI_REQUIRED=2.12.0
33 GNOME_PRINT_REQUIRED=2.12.0
34 GNOME_PRINT_UI_REQUIRED=2.12.0
35 GNOME_VFS_REQUIRED=2.10.0
36 GCONF_REQUIRED=2.12.0
37 VTE_REQUIRED=0.9.0
38 VTE_NEW_REQUIRED=0.13.1
39 LIBXML_REQUIRED=2.4.23
40 PANGO_REQUIRED=1.1.1
41 PCRE_REQUIRED=3.9
42 LIBDEVHELP_REQUIRED=0.13
43 GDL_REQUIRED=0.7.3
44 GNOMEBUILD_REQUIRED=0.1.4
45 GLADEUI_REQUIRED=3.0.2
46 GLADEUI_SVN_REQUIRED=3.1.4
47 LIBGRAPHVIZ_REQUIRED=1.0
48 NEON_REQUIRED=0.24.5
49 SUBVERSION_REQUIRED=1.0.2
50 GTKSOURCEVIEW_REQUIRED=1.4.0
51 GTKSOURCEVIEW_GNOME_REQUIRED=2.14
52 GTKSOURCEVIEW_GTK_REQUIRED=2.10
53 BINUTILS_REQUIRED=2.15.92
54 LIBWNCK_REQUIRED=2.12
56 dnl LIBGTODO_REQUIRED=0.15
58 AC_SUBST(GLIB_REQUIRED)
59 AC_SUBST(GOBJECT_REQUIRED)
60 AC_SUBST(GMODULE_REQUIRED)
61 AC_SUBST(GDK_PIXBUF_REQUIRED)
62 AC_SUBST(GTK_REQUIRED)
63 AC_SUBST(ORBIT_REQUIRED)
64 AC_SUBST(LIBGLADE_REQUIRED)
65 AC_SUBST(GNOME_REQUIRED)
66 AC_SUBST(GNOME_CANVAS_REQUIRED)
67 AC_SUBST(GNOME_UI_REQUIRED)
68 AC_SUBST(GNOME_PRINT_REQUIRED)
69 AC_SUBST(GNOME_PRINT_UI_REQUIRED)
70 AC_SUBST(GNOME_VFS_REQUIRED)
71 AC_SUBST(GCONF_REQUIRED)
72 AC_SUBST(VTE_REQUIRED)
73 AC_SUBST(LIBXML_REQUIRED)
74 AC_SUBST(PANGO_REQUIRED)
75 AC_SUBST(VTE_NEW_REQUIRED)
76 AC_SUBST(PCRE_REQUIRED)
77 AC_SUBST(LIBDEVHELP_REQUIRED)
78 AC_SUBST(GDL_REQUIRED)
79 AC_SUBST(GNOMEBUILD_REQUIRED)
80 AC_SUBST(GLADEUI_REQUIRED)
81 AC_SUBST(GLADEUI_SVN_REQUIRED)
82 AC_SUBST(LIBGRAPHVIZ_REQUIRED)
83 AC_SUBST(NEON_REQUIRED)
84 AC_SUBST(SUBVERSION_REQUIRED)
85 AC_SUBST(GTKSOURCEVIEW_REQUIRED)
86 AC_SUBST(GTKSOURCEVIEW_GNOME_REQUIRED)
87 AC_SUBST(GTKSOURCEVIEW_GTK_REQUIRED)
88 AC_SUBST(BINUTILS_REQUIRED)
89 AC_SUBST(LIBWNCK_REQUIRED)
91 dnl AC_SUBST(LIBGTODO_REQUIRED)
93 AM_INIT_AUTOMAKE([1.9 dist-bzip2 no-dist-gzip])
94 AC_CONFIG_HEADERS(config.h)
95 AC_DISABLE_STATIC
96 AM_MAINTAINER_MODE
97 GNOME_DOC_INIT
99 CFLAGS_WARNINGS="-Wall -Wmissing-prototypes -Wmissing-declarations -Wparentheses -Wpointer-arith"
100 WCXXFLAGS_WARNINGS="-Wall -Wparentheses -Wpointer-arith"
102 if test "x$GCC" = x; then
103     CFLAGS_WARNINGS=""
104     CXXFLAGS_WARNINGS=""
107 AM_CFLAGS="$AM_CFLAGS $CFLAGS_WARNINGS"
108 AM_CXXFLAGS="$AM_CXXFLAGS $CXXFLAGS_WARNINGS"
110 dnl Enable debugging mode
111 AC_ARG_ENABLE(debug,
112   [  --enable-debug           Enable debug messages],
113   AM_CFLAGS="$AM_CFLAGS -DDEBUG"
114   AM_CXXFLAGS="$AM_CXXFLAGS -DDEBUG")
115 AC_SUBST(AM_CFLAGS)
116 AC_SUBST(AM_CXXFLAGS)
118 ANJUTA_LDFLAGS="-no-undefined"
119 ANJUTA_PLUGIN_LDFLAGS="-module -avoid-version -no-undefined"
120 AC_SUBST(ANJUTA_LDFLAG)
121 AC_SUBST(ANJUTA_PLUGIN_LDFLAGS)
123 dnl Disable deprecated APIs
124 AC_ARG_ENABLE(deprecated,
125   [  --disable-deprecated     Disable deprecated APIs],
126   [ if test "$enableval" = "no"; then
127     DEPRECATED_FLAGS="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED"
128   fi ],
129  [ DEPRECATED_FLAGS="" ])
130 AC_SUBST(DEPRECATED_FLAGS)
132 dnl Enable versioned user preferences directory
133 AC_ARG_WITH(pref-suffix,
134   [  --with-pref-suffix=VALUE Suffix to add to user preferences dir.],
135   PREF_SUFFIX="$withval")
137 AC_SUBST(PREF_SUFFIX)
138 AC_DEFINE_UNQUOTED(PREF_SUFFIX,
139       "${PREF_SUFFIX}",
140           [Suffix to add to preferences directory])
142 #Check for C Compiler
143 AC_PROG_CC
144 AC_PROG_CPP
145 AC_LANG_C
147 #Check for C++ Compiler
148 AC_PROG_CXX
149 AC_LANG_CPLUSPLUS
151 AC_ISC_POSIX
152 AC_HEADER_STDC
153 AM_DISABLE_STATIC
154 AM_PROG_LIBTOOL
156 AC_TYPE_SIGNAL
158 dnl ***************************************************************************
159 dnl Check for pkgconfig
160 dnl ***************************************************************************
161 AC_PATH_PROG(PKGCONFIG_CONFIG, pkg-config,no)
162 if test x$PKGCONFIG_CONFIG = xno; then
163   AC_MSG_ERROR(Please install the pkg-config package from http://www.freedesktop.org/software/pkgconfig/)
166 dnl pkg checks are split into separate packages instead of single package
167 dnl because different plugins have different requirements.
169 PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED)
170 AC_SUBST(GLIB_CFLAGS)
171 AC_SUBST(GLIB_LIBS)
173 PKG_CHECK_MODULES(GOBJECT, gobject-2.0 >= $GOBJECT_REQUIRED)
174 AC_SUBST(GOBJECT_CFLAGS)
175 AC_SUBST(GOBJECT_LIBS)
177 PKG_CHECK_MODULES(GMODULE, gmodule-2.0 >= $GMODULE_REQUIRED)
178 AC_SUBST(GMODULE_CFLAGS)
179 AC_SUBST(GMODULE_LIBS)
181 PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= $GTHREAD_REQUIRED)
182 AC_SUBST(GTHREAD_CFLAGS)
183 AC_SUBST(GTHREAD_LIBS)
185 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= $GTK_REQUIRED)
186 AC_SUBST(GTK_CFLAGS)
187 AC_SUBST(GTK_LIBS)
189 PKG_CHECK_MODULES(GDK_PIXBUF, gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED)
190 AC_SUBST(GDK_PIXBUF_CFLAGS)
191 AC_SUBST(GDK_PIXBUF_LIBS)
193 PKG_CHECK_MODULES(ORBIT, ORBit-2.0 >= $ORBIT_REQUIRED)
194 AC_SUBST(ORBIT_CFLAGS)
195 AC_SUBST(ORBIT_LIBS)
197 PKG_CHECK_MODULES(GLADE, libglade-2.0 >= $LIBGLADE_REQUIRED)
198 AC_SUBST(GLADE_CFLAGS)
199 AC_SUBST(GLADE_LIBS)
201 PKG_CHECK_MODULES(GNOME, libgnome-2.0 >= $GNOME_REQUIRED)
202 AC_SUBST(GNOME_CFLAGS)
203 AC_SUBST(GNOME_LIBS)
205 PKG_CHECK_MODULES(GNOME_CANVAS, libgnomecanvas-2.0 >= $GNOME_CANVAS_REQUIRED)
206 AC_SUBST(GNOME_CANVAS_CFLAGS)
207 AC_SUBST(GNOME_CANVAS_LIBS)
209 PKG_CHECK_MODULES(GNOME_UI, libgnomeui-2.0 >= $GNOME_UI_REQUIRED)
210 AC_SUBST(GNOME_UI_CFLAGS)
211 AC_SUBST(GNOME_UI_LIBS)
213 PKG_CHECK_MODULES(GNOME_PRINT, libgnomeprint-2.2 >= $GNOME_PRINT_REQUIRED)
214 AC_SUBST(GNOME_PRINT_CFLAGS)
215 AC_SUBST(GNOME_PRINT_LIBS)
217 PKG_CHECK_MODULES(GNOME_PRINT_UI, libgnomeprintui-2.2 >= $GNOME_PRINT_UI_REQUIRED)
218 AC_SUBST(GNOME_PRINT_UI_CFLAGS)
219 AC_SUBST(GNOME_PRINT_UI_LIBS)
221 PKG_CHECK_MODULES(GNOME_VFS, gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED)
222 AC_SUBST(GNOME_VFS_CFLAGS)
223 AC_SUBST(GNOME_VFS_LIBS)
225 PKG_CHECK_MODULES(GNOME_VFS_MODULE, gnome-vfs-module-2.0 >= $GNOME_VFS_REQUIRED)
226 AC_SUBST(GNOME_VFS_MODULE_CFLAGS)
227 AC_SUBST(GNOME_VFS_MODULE_LIBS)
229 PKG_CHECK_MODULES(GCONF, gconf-2.0 >= $GCONF_REQUIRED)
230 AC_SUBST(GCONF_CFLAGS)
231 AC_SUBST(GCONF_LIBS)
233 PKG_CHECK_MODULES(VTE, vte >= $VTE_REQUIRED)
234 AC_SUBST(VTE_CFLAGS)
235 AC_SUBST(VTE_LIBS)
237 PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED)
238 AC_SUBST(LIBXML_CFLAGS)
239 AC_SUBST(LIBXML_LIBS)
241 PKG_CHECK_MODULES(PANGO, pango >= $PANGO_REQUIRED)
242 AC_SUBST(PANGO_CFLAGS)
243 AC_SUBST(PANGO_LIBS)
245 PKG_CHECK_MODULES(GDL, gdl-1.0 >= $GDL_REQUIRED gdl-gnome-1.0 >= $GDL_REQUIRED)
246 AC_SUBST(GDL_CFLAGS)
247 AC_SUBST(GDL_LIBS)
249 PKG_CHECK_MODULES(LIBXSLT, libxslt)
250 AC_SUBST(LIBXSLT_CFLAGS)
251 AC_SUBST(LIBXSLT_LIBS)
253 dnl Check for autogen
254 dnl -----------------
255 AC_PATH_PROG(AUTOGEN_PATH, autogen,no)
256 if test x$AUTOGEN_PATH = xno; then
257    AC_MSG_ERROR([Couldn't find autogen, please install the autogen package. You can get it from http://autogen.sourceforge.net/])
260 dnl Check for Devhelp
261 dnl -----------------
263 AC_ARG_ENABLE(plugin-devhelp,
264   [  --disable-plugin-devhelp        Disable devhelp plugin support in Anjuta.],
265   [ if test "$enableval" = "no"; then
266        user_disabled_devhelp=1
267     fi ],
268   [ user_disabled_devhelp=0 ] )
270 AC_MSG_CHECKING(if devhelp plugin is disabled)
271 if test "$user_disabled_devhelp" = 1; then
272         AC_MSG_RESULT(yes)
273         devhelp_enabled="no"
274 else
275         AC_MSG_RESULT(no)
276         devhelp_old=yes
277         PKG_CHECK_MODULES(PLUGIN_DEVHELP, 
278                                 [libdevhelp-1.0 >= $LIBDEVHELP_REQUIRED],
279                                          [
280                                             devhelp_old=no
281                                                 devhelp_enabled=yes
282                                          ], [
283                                                    AC_MSG_RESULT([version >= 0.11 not found])
284                                                    devhelp_old=yes
285                                                    devhelp_enabled=no
286                                          ])
287         if test x$devhelp_old = xyes; then
288           PKG_CHECK_MODULES(PLUGIN_DEVHELP, [libdevhelp-1.0 >= 0.9], [devhelp_enabled=yes], [devhelp_enabled=no])
289                 if test x$devhelp_enabled = xyes; then
290               AC_DEFINE(HAVE_OLD_DEVHELP, 1, [If old devhelp (>= 0.9 < 0.11) is installed])
291                 fi
292         fi
293         AC_SUBST(PLUGIN_DEVHELP_CFLAGS)
294         AC_SUBST(PLUGIN_DEVHELP_LIBS)
297 if test x$devhelp_enabled = xyes; then
298         GECKO_HOME=`$PKGCONFIG_CONFIG --variable=gecko_home libdevhelp-1.0`
299         if test x$GECKO_HOME != x; then
300                 ANJUTA_LDFLAGS="$ANJUTA_LDFLAGS -R$GECKO_HOME"
301         fi
303 AC_SUBST(ANJUTA_LDFLAGS)
305 AM_CONDITIONAL(HAVE_PLUGIN_DEVHELP, [test x$devhelp_enabled = xyes])
307 dnl Check for GTodo
308 dnl -----------------
309 dnl PKG_CHECK_MODULES(PLUGIN_GTODO, libgtodo-1.0 >= $LIBGTODO_REQUIRED)
310 dnl AC_SUBST(PLUGIN_GTODO_CFLAGS)
311 dnl AC_SUBST(PLUGIN_GTODO_LIBS)
313 dnl Check for Gnome Build
314 dnl ---------------------
316 PKG_CHECK_MODULES(PLUGIN_GNOMEBUILD, gnome-build-1.0 >= $GNOMEBUILD_REQUIRED)
317 AC_SUBST(PLUGIN_GNOMEBUILD_CFLAGS)
318 AC_SUBST(PLUGIN_GNOMEBUILD_LIBS)
320 dnl Check for Glade3
321 dnl ---------------------
323 AC_ARG_ENABLE(plugin-glade,
324   [  --disable-plugin-glade        Disable glade plugin support in Anjuta.],
325   [ if test "$enableval" = "no"; then
326        user_disabled_glade=1
327     fi ],
328   [ user_disabled_glade=0 ] )
330 AC_MSG_CHECKING(if glade plugin is disabled)
331 if test "$user_disabled_glade" = 1; then
332         AC_MSG_RESULT(yes)
333         libgladeui_found="no"
334 else
335         AC_MSG_RESULT(no)
336         PKG_CHECK_MODULES(PLUGIN_GLADE, [gladeui-1.0 >= $GLADEUI_SVN_REQUIRED],
337                 [
338                         libgladeui_found="yes"
339                 ], [
340                         libgladeui_found="no"
341                 ])
342         if test x$libgladeui_found = xno; then
343                 PKG_CHECK_MODULES(PLUGIN_GLADE, [libgladeui-1.0 > $GLADEUI_REQUIRED],
344                         [
345                                 libgladeui_found="old"
346                         ], [
347                                 libgladeui_found="no"
348                         ])
349         fi
350         if test x$libgladeui_found = xold; then
351                 libgladeui_found="yes"
352                 AC_DEFINE_UNQUOTED(GLADEUI_LAST_PUBLIC, [1], [Last public GLADEUI version])
353                 AC_SUBST(GLADEUI_LAST_PUBLIC)
354         fi
355         if test x$libgladeui_found = xno; then
356                 PKG_CHECK_MODULES(PLUGIN_GLADE, [libgladeui-1.0 = $GLADEUI_REQUIRED],
357                         [
358                                 libgladeui_found="old"
359                         ], [
360                                 libgladeui_found="no"
361                         ])
362         fi
363         if test x$libgladeui_found = xold; then
364                 libgladeui_found="yes"
365                 AC_DEFINE_UNQUOTED(GLADEUI_OLD, [1], [Older GLADEUI version])
366                 AC_SUBST(GLADEUI_OLD)
367         fi
368         AC_SUBST(PLUGIN_GLADE_CFLAGS)
369         AC_SUBST(PLUGIN_GLADE_LIBS)
372 AM_CONDITIONAL(HAVE_PLUGIN_GLADE, [test x$libgladeui_found = xyes])
374 dnl Check for graphviz (class inheritance and profiler plugins)
375 dnl --------------------------------------------------------------------------
376 dnl FIXME: For some strange reason graphviz-devel rpm install the *.pc files
377 dnl in /usr/lib/graphviz/pkgconfig, instead of usual /usr/lib/pkgconfig. This
378 dnl makes pkgconfig check fail if we don't add the above path in
379 dnl PKG_CONFIG_PATH. We have added both /usr/lib/graphviz/pkgconfig and
380 dnl /usr/local/lib/pkgconfig paths. If graphviz is installed in other prefix
381 dnl (other than /usr or /usr/local or the current installation prefix),
382 dnl following pkgconfig check will fail.
383 dnl --------------------------------------------------------------------------
384 AC_ARG_ENABLE(graphviz,
385         [ --disable-graphviz            Disable GraphViz support in Anjuta], 
386         [ if test "$enableval" = "no"; then
387                 user_disabled_graphviz=1
388           fi ],
389         [ user_disabled_graphviz=0 ])
391 AC_MSG_CHECKING(if GraphViz support is disabled)
392 if test "$user_disabled_graphviz" = 1; then
393         AC_MSG_RESULT(yes)
394         libgraphviz_found="no"
395 else
396         AC_MSG_RESULT(no)
397         
398         dnl Set pkgconfig path
399         ANJUTA_PKG_CONFIG_PATH_SAVE="${PKG_CONFIG_PATH}"
400         PKG_CONFIG_PATH="/usr/lib/graphviz/pkgconfig:$PKG_CONFIG_PATH"
401         PKG_CONFIG_PATH="/usr/local/lib/graphviz/pkgconfig:$PKG_CONFIG_PATH"
402         PKG_CONFIG_PATH="/usr/lib64/graphviz/pkgconfig:$PKG_CONFIG_PATH"
403         PKG_CONFIG_PATH="/usr/local/lib64/graphviz/pkgconfig:$PKG_CONFIG_PATH"
404         
405         anjuta_save_prefix="$prefix"
406         test "x$prefix" = xNONE && prefix=$ac_default_prefix
407         graphviz_pkgconfig=`eval echo ${libdir}/graphviz/pkgconfig`
408         PKG_CONFIG_PATH="$graphviz_pkgconfig:$PKG_CONFIG_PATH"
409         prefix="$anjuta_save_prefix"
411         export PKG_CONFIG_PATH
412         PKG_CHECK_MODULES(GRAPHVIZ,
413                 [libgvc >= $LIBGRAPHVIZ_REQUIRED libgraph >= $LIBGRAPHVIZ_REQUIRED], 
414                 [libgraphviz_found="yes"],
415                 [libgraphviz_found="no"])
416         AC_SUBST(GRAPHVIZ_CFLAGS)
417         AC_SUBST(GRAPHVIZ_LIBS)
418         
419         dnl Restore pkgconfig path
420         PKG_CONFIG_PATH="${ANJUTA_PKG_CONFIG_PATH_SAVE}"
421         export PKG_CONFIG_PATH
424 AM_CONDITIONAL(HAVE_GRAPHVIZ, [test x$libgraphviz_found = xyes])
426 dnl Define HAVE_GRAPHVIZ to disable Function Call Chart in the Profiler if 
427 dnl Graphviz isn't on the system
428 if test "$libgraphviz_found" = yes; then
429         AC_DEFINE(HAVE_GRAPHVIZ, [], [Define if we have GraphViz >= 2.6.0])
432 dnl Build gtksourceview plugin only on gnome 2.14 and gtk 2.10
433 dnl -------------------------------------------------------------
435 AC_ARG_ENABLE(plugin-sourceview,
436         [ --disable-plugin-sourceview   Disable gtksourceview based editor in Anjuta], 
437         [ if test "$enableval" = "no"; then
438                 user_disabled_sourceview=1
439           fi ],
440         [ user_disabled_sourceview=0 ])
442 AC_MSG_CHECKING(if sourceview plugin is disabled)
443 if test "$user_disabled_sourceview" = 1; then
444         AC_MSG_RESULT(yes)
445         sourceview="no"
446 else
447         AC_MSG_RESULT(no)
448         
449         PKG_CHECK_MODULES(PLUGIN_SOURCEVIEW,
450                 [libgnome-2.0 >= $GTKSOURCEVIEW_GNOME_REQUIRED,
451                 gtk+-2.0 >= $GTKSOURCEVIEW_GTK_REQUIRED,
452                 gtksourceview-1.0 >= $GTKSOURCEVIEW_REQUIRED],
453                 [sourceview="yes"],
454                 [sourceview="no"])
455         AC_SUBST(PLUGIN_SOURCEVIEW_CFLAGS)
456         AC_SUBST(PLUGIN_SOURCEVIEW_LIBS)
459 AM_CONDITIONAL(HAVE_PLUGIN_SOURCEVIEW, [test x$sourceview = xyes])
461 dnl Scintilla Editor
462 dnl -------------------------------------------------------------
464 AC_ARG_ENABLE(plugin-scintilla,
465         [ --disable-plugin-scintilla    Disable Scintilla based editor in Anjuta], 
466         [ if test "$enableval" = "no"; then
467                 user_disabled_scintilla=1
468           fi ],
469         [ user_disabled_scintilla=0 ])
471 AC_MSG_CHECKING(if scintilla plugin is disabled)
472 if test "$user_disabled_scintilla" = 1; then
473         AC_MSG_RESULT(yes)
474         scintilla="no"
475 else
476         AC_MSG_RESULT(no)
477         scintilla="yes"
479 AM_CONDITIONAL(HAVE_PLUGIN_SCINTILLA, [test x$scintilla = xyes])
481 dnl Valgrind plugin
482 dnl check for libbfd
483 dnl -------------------------------------------------------------
485 AC_ARG_ENABLE(plugin-valgrind,
486         [ --disable-plugin-valgrind     Disable Valgrind plugin], 
487         [ if test "$enableval" = "no"; then
488                 user_disabled_valgrind=1
489           fi ],
490         [ user_disabled_valgrind=0 ])
492 AC_MSG_CHECKING(if valgrind plugin is disabled)
493 if test "$user_disabled_valgrind" = 1; then
494         AC_MSG_RESULT(yes)
495         valgrind="no"
496 else
497         AC_MSG_RESULT(no)
498         valgrind="yes"
501 AC_CHECK_LIB(bfd, bfd_get_error, [PLUGIN_VALGRIND_LIBS="-Wl,-Bstatic -lbfd -liberty -Wl,-Bdynamic"],
502    valgrind="no",
503   -liberty)
505 AC_SUBST(PLUGIN_VALGRIND_LIBS)
506 AM_CONDITIONAL(HAVE_PLUGIN_VALGRIND, [test x$valgrind = xyes])
511 dnl we need gconftool-2 in order to install the schema
512 AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
514 if test "x$GCONFTOOL" = "xno"; then
515   AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
518 AM_GCONF_SOURCE_2
523 dnl check for bfd_get_section_size_before_reloc() in libbfd
524 AC_MSG_CHECKING(for bfd_get_section_size_before_reloc)
525 AC_TRY_LINK([
526         #include <bfd.h>
527         ], [
528         asection *section;
530         bfd_get_section_size_before_reloc (section);
531         ],
532         AC_MSG_RESULT(yes)
533         AC_DEFINE(HAVE_BFD_GET_SECTION_SIZE_BEFORE_RELOC, [], [Define if libbfd
534 contains the function bfd_get_section_size_before_reloc])
536         AC_MSG_RESULT(no)
542 dnl Setup Anjuta Library flags
543 dnl --------------------------
544 LIBANJUTA_CFLAGS='$(GNOME_UI_CFLAGS) $(GLADE_CFLAGS) -I$(top_srcdir) -DPACKAGE_PIXMAPS_DIR=\""$(datadir)/pixmaps/$(PACKAGE)\"" -DPACKAGE_DATA_DIR=\""$(datadir)/$(PACKAGE)"\"'
545 LIBANJUTA_LIBS='$(top_builddir)/libanjuta/libanjuta.la'
546 AC_SUBST(LIBANJUTA_CFLAGS)
547 AC_SUBST(LIBANJUTA_LIBS)
549 dnl Setup Plugin directories
550 dnl ------------------------
551 anjuta_plugin_dir='$(libdir)/anjuta'
552 anjuta_data_dir='$(datadir)/anjuta'
553 anjuta_ui_dir='$(datadir)/anjuta/ui'
554 anjuta_glade_dir='$(datadir)/anjuta/glade'
555 anjuta_image_dir='$(datadir)/pixmaps/anjuta'
556 AC_SUBST(anjuta_plugin_dir)
557 AC_SUBST(anjuta_data_dir)
558 AC_SUBST(anjuta_ui_dir)
559 AC_SUBST(anjuta_glade_dir)
560 AC_SUBST(anjuta_image_dir)
562 dnl ***************************************************************************
563 dnl Check for old vte version
564 dnl ***************************************************************************
565 PKG_CHECK_MODULES(VTE, vte >= $VTE_NEW_REQUIRED, OLD_VTE=0, OLD_VTE=1)
566 AC_SUBST(OLD_VTE)
567 AC_DEFINE_UNQUOTED(OLD_VTE, $OLD_VTE, [Old version of vte])
569 dnl ***************************************************************************
570 dnl Check for marshal and enum generators
571 dnl ***************************************************************************
572 GLIB_GENMARSHAL="`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`"
573 AC_SUBST(GLIB_GENMARSHAL)
574 GLIB_MKENUMS="`$PKG_CONFIG --variable=glib_mkenums glib-2.0`"
575 AC_SUBST(GLIB_MKENUMS)
577 dnl ***************************************************************************
578 dnl Internatinalization
579 dnl ***************************************************************************
580 GETTEXT_PACKAGE=anjuta
581 AC_SUBST(GETTEXT_PACKAGE)
582 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
583 AM_GLIB_GNU_GETTEXT
584 IT_PROG_INTLTOOL([0.35.0])
586 dnl ***************************************************************************
587 dnl Check for gtk-doc.
588 dnl ***************************************************************************
589 GTK_DOC_CHECK([1.4])
591 dnl ***************************************************************************
592 dnl Check for Gnome XML [Is this still required?]
593 dnl ***************************************************************************
594 dnl GNOME_XML_CHECK
596 dnl ***************************************************************************
597 dnl Check for ScrollKeeper [No documentation for now]
598 dnl ***************************************************************************
599 dnl AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no)
600 dnl if test x$SCROLLKEEPER_CONFIG = xno; then
601 dnl   AC_MSG_ERROR(Couldn't find scrollkeeper-config, please install the scrollkeeper package. You can get it from http://scrollkeeper.sourceforge.net/)
602 dnl fi
603 dnl SCROLLKEEPER_REQUIRED=0.1.4
604 dnl AC_SUBST(SCROLLKEEPER_REQUIRED)
606 dnl ***************************************************************************
607 dnl Checking for scrollkeeper version [No documentation for now]
608 dnl ***************************************************************************
609 dnl AC_MSG_CHECKING(for scrollkeeper version number)
610 dnl if scrollkeeper-config --version > /dev/null 2>&1; then 
611 dnl    version=`scrollkeeper-config --version`; \
612 dnl    vers=`echo $version | awk 'BEGIN { FS = "."; } { print $1 * 1000 + $2;}'`; \
613 dnl    AC_MSG_RESULT(found $version)
614 dnl    SCROLLKEEPER_VERSION_NUM=$vers
615 dnl else
616 dnl    AC_MSG_ERROR(Did not find scrollkeeper installed)
617 dnl fi
618 dnl AC_SUBST(SCROLLKEEPER_VERSION_NUM)
620 dnl ***************************************************************************
621 dnl Check for PCRE
622 dnl ***************************************************************************
623 dnl Check for PCRE
624 AC_PATH_PROG(PCRE_CONFIG, pcre-config,no)
625 if test x$PCRE_CONFIG = xno; then
626   AC_MSG_ERROR(Please install the PCRE package from http://www.pcre.org/)
628 PCRE_CFLAGS=`pcre-config --cflags`
629 PCRE_LIBS=`pcre-config --libs`
630 AC_SUBST(PCRE_LIBS)
631 AC_SUBST(PCRE_CFLAGS)
633 dnl ***************************************************************************
634 dnl Tagmanager checks.
635 dnl ***************************************************************************
637 dnl Define convenience macros
638 dnl -------------------------
639 dnl CHECK_HEADER_DEFINE(LABEL, HEADER [,ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ] ])
640 AC_DEFUN([CHECK_HEADER_DEFINE],
642         AC_MSG_CHECKING("if $1 is defined in $2")
643         AC_EGREP_CPP(yes,
644 [#include <$2>
645 #ifdef $1
646   yes
647 #endif
648 ], [
649         AC_MSG_RESULT(yes)
650         $3
651 ], [
652         AC_MSG_RESULT(no)
653         $4
654 ]) ])
656 dnl Checks for header files.
657 AC_CHECK_HEADERS(dirent.h fcntl.h fnmatch.h stat.h stdlib.h string.h stdint.h)
658 AC_CHECK_HEADERS(time.h types.h unistd.h)
659 AC_CHECK_HEADERS(sys/dir.h sys/stat.h sys/times.h sys/types.h)
661 dnl Checks for typedefs, structures, and compiler characteristics.
663 dnl Disable cygwin check until someone fixes that stupid autoconf warnings.
664 dnl AC_CYGWIN
665 dnl AC_MINGW
667 AC_C_CONST
668 AC_OBJEXT
669 AC_EXEEXT
671 AC_TYPE_SIZE_T
672 AC_TYPE_OFF_T
674 AC_MSG_CHECKING("for fpos_t")
675 AC_EGREP_HEADER(fpos_t, stdio.h, AC_MSG_RESULT(yes),
677     AC_MSG_RESULT(no)
678     AC_DEFINE(fpos_t, long, [fpos_t is type long])
681 AC_MSG_CHECKING("for clock_t")
682 AC_EGREP_HEADER(clock_t, time.h, AC_MSG_RESULT(yes),
684     AC_MSG_RESULT(no)
685     AC_DEFINE(clock_t, long, [clock_t is type long])
688 CHECK_HEADER_DEFINE(L_tmpnam, stdio.h,, AC_DEFINE(L_tmpnam, 20, [L_tmpname is 20]))
690 CHECK_HEADER_DEFINE(INT_MAX, limits.h,,
691     CHECK_HEADER_DEFINE(MAXINT, limits.h,
692         AC_DEFINE(INT_MAX, MAXINT, [Maximum int size]), AC_DEFINE(INT_MAX, 32767, [Maximum int size])))
694 AC_MSG_CHECKING(if struct stat contains st_ino)
695 AC_TRY_COMPILE([#include <sys/stat.h>], [
696     struct stat st;
697     stat(".", &st);
698     if (st.st_ino > 0)
699         exit(0);
700 ], have_st_ino=yes, have_st_ino=no)
701 AC_MSG_RESULT($have_st_ino)
702 if test yes = "$have_st_ino"; then
703     AC_DEFINE(HAVE_STAT_ST_INO,,[Have stat st_ino])
707 dnl Check for function forkpty in libutil
708 AC_CHECK_LIB(util, forkpty)
710 dnl Checks for library functions.
711 AC_CHECK_FUNCS(fnmatch)
712 AC_CHECK_FUNCS(strstr)
713 AC_CHECK_FUNCS(stricmp)
714 AC_CHECK_FUNCS(strnicmp)
715 AC_CHECK_FUNCS(getline)
717 AC_CHECK_FUNCS(fgetpos, have_fgetpos=yes)
719 dnl SEEK_SET should be in stdio.h, but may be in unistd.h on SunOS 4.1.x
720 if test "$have_fgetpos" != yes ; then
721     CHECK_HEADER_DEFINE(SEEK_SET, stdio.h,,
722         CHECK_HEADER_DEFINE(SEEK_SET, unistd.h,,
723             AC_DEFINE(SEEK_SET, 0, [Seek set 0])))
726 AC_CHECK_FUNCS(mkstemp, have_mkstemp=yes)
727 if test "$have_mkstemp" != yes ; then
728     AC_CHECK_FUNCS(chmod)
729     if test "$tmpdir_specified" = yes ; then
730         AC_MSG_RESULT(use of tmpnam overrides temporary directory selection)
731     fi
732 else
733     AC_MSG_CHECKING(directory to use for temporary files)
734     if test -z "$enable_tmpdir" -o "$enable_tmpdir" = no -o "$enable_tmpdir" = yes ;
735         then tmpdir=/tmp
736         else tmpdir="$enable_tmpdir"
737     fi
738     if test -d $tmpdir ; then
739         AC_MSG_RESULT($tmpdir)
740         AC_DEFINE_UNQUOTED(TMPDIR, "$tmpdir", [Directory for temporary files])
741     else
742         AC_MSG_WARN($tmpdir does not exist)
743     fi
746 AC_CHECK_FUNCS(strerror opendir)
747 AC_CHECK_FUNCS(clock times, break)
748 AC_CHECK_FUNCS(remove, have_remove=yes,
749     CHECK_HEADER_DEFINE(remove, unistd.h,, AC_DEFINE(remove, unlink, [Remove is unlink])))
751 AC_CHECK_FUNCS(truncate, have_truncate=yes)
752 dnl === Cannot nest AC_CHECK_FUNCS() calls
753 if test "$have_truncate" != yes  ; then
754     AC_CHECK_FUNCS(ftruncate, have_ftruncate=yes)
755     if test "$have_ftruncate" != yes ; then
756         AC_CHECK_FUNCS(chsize)
757     fi
760 AC_CHECK_FUNCS(setenv, have_setenv=yes)
761 dnl === Cannot nest AC_CHECK_FUNCS() calls
762 if test "$have_setenv" != yes ; then
763     AC_CHECK_FUNCS(putenv, have_putenv=yes)
764     if test "$have_putenv" = yes ; then
765         AC_EGREP_HEADER(putenv, stdlib.h, have_putenv_prototype=yes)
766         if test "$have_putenv_prototype" = yes ; then
767             AC_MSG_CHECKING("putenv prototype")
768             AC_EGREP_HEADER([[^A-Za-zo-9_]putenv[   ]*\(.*const.*\)[    ]*;],
769                 stdlib.h, AC_MSG_RESULT(correct),
770                 [
771                     AC_MSG_RESULT(no const)
772                     AC_DEFINE(NON_CONST_PUTENV_PROTOTYPE,,[putenv has non constant prototype])
773                 ])
774         fi
775     fi
779 dnl if test yes = "$CYGWIN"; then with_posix_regex=no; fi
780 if test no != "$with_posix_regex"; then
781     AC_CHECK_FUNCS(regcomp)
782     AC_MSG_CHECKING(if regcomp works)
783     AC_TRY_RUN([
784 #include <sys/types.h>
785 #include <regex.h>
786 main() {
787     regex_t patbuf;
788     exit (regcomp (&patbuf, "/hello/", 0) != 0);
789 }],regcomp_works=yes,regcomp_works=no,AC_DEFINE(CHECK_REGCOMP,,[Check regcomp]))
790     AC_MSG_RESULT($regcomp_works)
791     if test yes != "$regcomp_works"; then
792         AC_DEFINE(REGCOMP_BROKEN,,[Regcomp is broken])
793     fi
796 dnl -----------------------------
797 dnl Checks for FreeBSD Build
798 dnl -----------------------------
799 AC_MSG_CHECKING(if building on FreeBSD)
801 if test `uname -s` = "FreeBSD" ; then
802         AC_MSG_RESULT(yes)
803         FREEBSD_BUILD=-DFREEBSD
804         AC_SUBST(FREEBSD_BUILD)
805         AC_PATH_PROG(GMAKE, gmake, no)
806         if test "x$GMAKE" = "xno"; then
807                 AC_ERROR(You need gmake installed to build Anjuta!)
808         fi
809 else
810         AC_MSG_RESULT(no)
811         GMAKE="make"
814 AC_SUBST(GMAKE)
816 dnl Checks for missing prototypes
817 dnl -----------------------------
818 AC_CHECKING("for missing prototypes")
820 AC_DEFUN([CHECK_PROTO], [AC_EGREP_HEADER([[^A-Za-z0-9_]$1([   ]+[A-Za-z0-9_]*)?\(], $2,, AC_DEFINE(patsubst([NEED_PROTO_NAME], [NAME], translit($1, [a-z], [A-Z])),,[Do not know]) AC_MSG_RESULT(adding prototype for $1))])
822 if test "$have_remove" = yes ; then
823     CHECK_PROTO(remove, stdio.h)
824 else
825     CHECK_PROTO(unlink, unistd.h)
827 CHECK_PROTO(malloc, stdlib.h)
828 CHECK_PROTO(getenv, stdlib.h)
829 CHECK_PROTO(stat,   sys/stat.h)
830 CHECK_PROTO(lstat,  sys/stat.h)
831 if test "$have_fgetpos" = yes ; then
832     CHECK_PROTO(fgetpos, stdio.h)
834 if test "$have_truncate" = yes ; then
835     CHECK_PROTO(truncate, unistd.h)
837 if test "$have_ftruncate" = yes ; then
838     CHECK_PROTO(ftruncate, unistd.h)
841 dnl  **********************************************************
842 dnl  check if we have svn libraries to build subversion plugin
843 dnl  (stolen from kdevelop ;-)
844 dnl  **********************************************************
846 AC_MSG_CHECKING(for Subversion svn-config)
847 AC_ARG_WITH(subversion-dir,
848                 [  --with-subversion-dir=DIR           where Subversion is installed ],
849                 [
850                                 SVNCONFIG="$withval/bin/svn-config"
851                 ])
853 if test -z "$SVNCONFIG"; then
854                 _SVNCONFIG="`svn-config --prefix 2> /dev/null`"
855                 if test -n "$_SVNCONFIG"; then
856                                 SVNCONFIG="$_SVNCONFIG/bin/svn-config"
857                 fi
860 AC_SUBST(SVNCONFIG)
861 if test -x "$SVNCONFIG"; then
862                 SVNLD="`$SVNCONFIG --ldflags 2> /dev/null`"
863                 SVN_LIB="`$SVNCONFIG --libs --cflags 2> /dev/null` -lsvn_client-1 -lsvn_subr-1"
864                 dnl ugly hack for subversion svn-config problems in 0.14.x, to be removed when svn-config is fixed
865                 SVN_INCLUDE="`$SVNCONFIG --includes 2> /dev/null` -I$_SVNCONFIG/include/subversion-1/"
866                 AC_MSG_RESULT(yes)
867 else
868                 AC_MSG_RESULT(not found)
869                 
870                 dnl just a fallback to debian's config so that it works for me :)
871                 AC_ARG_WITH(svn-include,
872                                                                 [[  --with-svn-include=DIR   Use the given path to the subversion headers.]],
873                                                                 [
874                                                                 if test "$withval" != "yes" -a "$withval" != ""; then
875                                                                                 SVN_INCLUDES=$withval
876                                                                 fi
877                                                                 ])
878                 if test -z "$SVN_INCLUDES"; then
879                         SVN_INCLUDES="/usr/local/include /usr/include"
880                 fi
881                 AC_MSG_CHECKING([for Subversion headers])
882                 SVN_INCLUDE=""
883                 for VALUE in $SVN_INCLUDES ; do
884                                 if test -f $VALUE/subversion-1/svn_types.h ; then
885                                                 SVN_INCLUDE=$VALUE/subversion-1
886                                                 break
887                                 fi
888                                 if test -f $VALUE/svn_types.h ; then
889                                                 SVN_INCLUDE=$VALUE
890                                                 break
891                                 fi
892                 done
893                 if test $SVN_INCLUDE ; then
894                                 AC_MSG_RESULT([found])
895                 else
896                                 AC_MSG_RESULT([not found])
897                 fi
898                 SVN_LIBS="/usr/local/lib /usr/lib"
899                 AC_ARG_WITH(svn-lib,
900                                                 [[  --with-svn-lib=DIR  Use the given path to the subversion libraries.]],
901                                                 [
902                                                         if test "$withval" != "yes" -a "$withval" != ""; then
903                                                                 SVN_LIBS=$withval
904                                                         fi
905                                                 ])
906                 AC_MSG_CHECKING([for Subversion libraries])
907                 SVN_LIB=""
908                 for VALUE in $SVN_LIBS ; do
909                                 if ls $VALUE/libsvn_client-1.* 1>/dev/null 2>&1; then
910                                                 SVN_LIB=$VALUE
911                                                 break
912                                 fi
913                 done
914                 if test $SVN_LIB ; then
915                                 AC_MSG_RESULT([found])
916                 else
917                                 AC_MSG_RESULT([not found])
918                 fi
921 dnl ******************************************************************
922 dnl Check for extra libs required by subversion.
923 dnl FIXME: This should actually be done by subversion and not by us.
924 dnl ******************************************************************
926 AC_ARG_ENABLE(plugin-subversion,
927   [  --disable-plugin-subversion        Disable subversion support in Anjuta.],
928   [ if test "$enableval" = "no"; then
929         user_disabled_subversion=1
930     fi ],
931   [ user_disabled_subversion=0 ] )
933 AC_MSG_CHECKING(if subversion support is disabled)
934 if test "$user_disabled_subversion" = 1; then
935         AC_MSG_RESULT(yes)
936         SVN_INCLUDE=""
937         SVN_LIB=""
938 else
939         AC_MSG_RESULT(no)
942 if test -n "$SVN_INCLUDE" ; then
943         dnl ------------------------------------
944         dnl APR. Required by subversion (devel)
945         dnl ------------------------------------
946         
947         APR_CONFIGS="apr-config /usr/local/apr/bin/apr-config/ apr-1-config "
948         AC_ARG_WITH(apr-config,
949         [[  --with-apr-config=FILE    Use the given path to apr-config when determining
950                                                                 APR configuration; defaults to "apr-config"]],
951         [
952         if test "$withval" != "yes" -a "$withval" != ""; then
953           APR_CONFIGS=$withval
954         fi
955         ])
956         AC_MSG_CHECKING([for APR])
957         APR_CONFIG=""
958         for VALUE in $APR_CONFIGS ; do
959                         if $VALUE --cflags > /dev/null 2>&1 ; then
960                                         APR_CONFIG=$VALUE
961                                         break
962                         fi
963         done
964         test $VALUE && APR_CONFIG=$VALUE
965         if test $APR_CONFIG ; then
966                 AC_MSG_RESULT([found])
967                 APR_CFLAGS="`$APR_CONFIG --cflags` `$APR_CONFIG --cppflags`"
968                 APR_INCLUDE="`$APR_CONFIG --includes`"
969                 APR_LIBS="`$APR_CONFIG --link-ld --libs`"
970         else
971                 AC_MSG_RESULT([not found])
972                 dnl AC_MSG_ERROR([APR is required. Try --with-apr-config.])
973         fi
974         
975         dnl -----------------------------------------
976         dnl APR util. Required by subversion (devel)
977         dnl------------------------------------------
978         
979         APU_CONFIGS="apu-config /usr/local/apr/bin/apu-config apu-1-config"
980         AC_ARG_WITH(apu-config,
981         [[  --with-apu-config=FILE    Use the given path to apu-config when determining
982                                                                 APR util configuration; defaults to "apu-config"]],
983         [
984                 if test "$withval" != "yes" -a "$withval" != ""; then
985                         APU_CONFIGS=$withval
986                 fi
987         ])
988         AC_MSG_CHECKING([for APR util])
989         APU_CONFIG=""
990         for VALUE in $APU_CONFIGS ; do
991                         if $VALUE --includes > /dev/null 2>&1 ; then
992                                         APU_CONFIG=$VALUE
993                                         break
994                         fi
995         done
996         if test $APU_CONFIG ; then
997                 AC_MSG_RESULT([found])
998                 APR_INCLUDE="$APR_INCLUDE `$APU_CONFIG --includes`"
999                 APR_LIBS="$APR_LIBS `$APU_CONFIG --link-ld --libs`"
1000         else
1001                 AC_MSG_RESULT([not found])
1002         fi
1003         
1004         dnl -----------------------------------------
1005         dnl NEON. Required by subversion (devel)
1006         dnl------------------------------------------
1008         dnl Check for neon. It is required by subversion libs, but for
1009         dnl for some strange reason it's not in it's dependencies.
1010         dnl subversion plugin will be disabled if neon (devel) is not
1011         dnl installed, even if subversion (devel) is installed.
1013         NEON_CONFIGS="neon-config"
1014         AC_ARG_WITH(neon-config,
1015         [[  --with-neon-config=FILE    Use the given path to neon-config when determining
1016                                                                 Neon configuration; defaults to "neon-config"]],
1017         [
1018                 if test "$withval" != "yes" -a "$withval" != ""; then
1019                         NEON_CONFIGS=$withval
1020                 fi
1021         ])
1022         AC_MSG_CHECKING([for Neon])
1023         NEON_CONFIG=""
1024         for VALUE in $NEON_CONFIGS ; do
1025                         if $VALUE --cflags > /dev/null 2>&1 ; then
1026                                         NEON_CONFIG=$VALUE
1027                                         break
1028                         fi
1029         done
1030         if test $NEON_CONFIG ; then
1031                 AC_MSG_RESULT([found])
1032         else
1033                 AC_MSG_RESULT([not found])
1034                 SVN_INCLUDE=""
1035                 SVN_LIB=""
1036         fi
1039 dnl ------------------------------------------
1040 dnl Finally prepare subversion build flags
1041 dnl ------------------------------------------
1043 if test -n "$SVN_INCLUDE" ; then
1044         SVN_INCLUDE="-I$SVN_INCLUDE $APR_INCLUDE"
1045         SVN_LIB="-L$SVN_LIB $APR_LIBS -lsvn_client-1 -lsvn_subr-1"
1046         SVN_CFLAGS="$APR_CFLAGS"
1049 AM_CONDITIONAL(BUILD_SVN, [test -n "$SVN_INCLUDE"])
1050 AC_SUBST(SVN_INCLUDE)
1051 AC_SUBST(SVN_LIB)
1052 AC_SUBST(SVN_CFLAGS)
1054 dnl --------- help outputs -----------
1055 dnl manuals/C/Makefile
1056 dnl manuals/C/anjuta-tutorial/Makefile
1057 dnl manuals/C/anjuta-advanced-tutorial/Makefile
1058 dnl manuals/C/anjuta-faqs/Makefile
1059 dnl manuals/C/anjuta-manual/Makefile
1060 dnl manuals/de/Makefile
1061 dnl manuals/de/anjuta-tutorial/Makefile
1062 dnl manuals/ja/Makefile
1063 dnl manuals/ja/anjuta-faqs/Makefile
1064 dnl manuals/ja/anjuta-manual/Makefile
1066 AC_OUTPUT([
1067 Makefile
1068 po/Makefile.in
1069 tagmanager/Makefile
1070 tagmanager/include/Makefile
1071 global-tags/Makefile
1072 libegg/Makefile
1073 libegg/util/Makefile
1074 libegg/treeviewutils/Makefile
1075 libegg/menu/Makefile
1076 libegg/recent-files/Makefile
1077 anjuta.spec
1078 libanjuta/Makefile
1079 libanjuta/libanjuta-1.0.pc
1080 libanjuta/interfaces/Makefile
1081 src/Makefile
1082 pixmaps/Makefile
1083 data/Makefile
1084 data/welcome.txt
1085 data/properties/Makefile
1086 doc/anjuta.1
1087 doc/anjuta_launcher.1
1088 doc/Makefile
1089 scripts/Makefile
1090 scripts/anjuta_import.sh
1091 launcher/Makefile
1092 plugins/Makefile
1093 plugins/sample1/Makefile
1094 plugins/gtodo/Makefile
1095 plugins/class-gen/Makefile
1096 plugins/class-gen/templates/Makefile
1097 plugins/patch/Makefile
1098 plugins/editor/Makefile
1099 plugins/editor/scintilla/Makefile
1100 plugins/editor/scintilla/include/Makefile
1101 plugins/document-manager/Makefile
1102 plugins/search/Makefile
1103 plugins/message-view/Makefile
1104 plugins/gdb/Makefile
1105 plugins/gdb/images/Makefile
1106 plugins/debug-manager/Makefile
1107 plugins/debug-manager/images/Makefile
1108 plugins/devhelp/Makefile
1109 plugins/glade/Makefile
1110 plugins/file-manager/Makefile
1111 plugins/file-loader/Makefile
1112 plugins/file-wizard/Makefile
1113 plugins/terminal/Makefile
1114 plugins/build-basic-autotools/Makefile
1115 plugins/profiler/Makefile
1116 plugins/project-manager/Makefile
1117 plugins/symbol-browser/Makefile
1118 plugins/symbol-browser/images/Makefile
1119 plugins/cvs-plugin/Makefile
1120 plugins/project-wizard/Makefile
1121 plugins/macro/Makefile
1122 plugins/subversion/Makefile
1123 plugins/sourceview/Makefile
1124 plugins/tools/Makefile
1125 plugins/tools/scripts/Makefile
1126 plugins/class-inheritance/Makefile
1127 plugins/valgrind/Makefile
1128 plugins/project-import/Makefile
1129 plugins/project-wizard/templates/Makefile
1130 plugins/project-wizard/templates/mkfile/Makefile
1131 plugins/project-wizard/templates/mkfile/src/Makefile
1132 plugins/project-wizard/templates/mkfile/po/Makefile
1133 plugins/project-wizard/templates/minimal/Makefile
1134 plugins/project-wizard/templates/terminal/Makefile
1135 plugins/project-wizard/templates/terminal/src/Makefile
1136 plugins/project-wizard/templates/terminal/po/Makefile
1137 plugins/project-wizard/templates/cpp/Makefile
1138 plugins/project-wizard/templates/cpp/src/Makefile
1139 plugins/project-wizard/templates/cpp/po/Makefile
1140 plugins/project-wizard/templates/gtk/Makefile
1141 plugins/project-wizard/templates/gtk/src/Makefile
1142 plugins/project-wizard/templates/gtk/po/Makefile
1143 plugins/project-wizard/templates/anjuta-plugin/Makefile
1144 plugins/project-wizard/templates/anjuta-plugin/src/Makefile
1145 plugins/project-wizard/templates/anjuta-plugin/po/Makefile
1146 plugins/project-wizard/templates/gnome/Makefile
1147 plugins/project-wizard/templates/gnome/src/Makefile
1148 plugins/project-wizard/templates/gnome/po/Makefile
1149 plugins/project-wizard/templates/gtkmm/Makefile
1150 plugins/project-wizard/templates/gtkmm/src/Makefile
1151 plugins/project-wizard/templates/gtkmm/po/Makefile
1152 plugins/project-wizard/templates/gcj/Makefile
1153 plugins/project-wizard/templates/gcj/src/Makefile
1154 plugins/project-wizard/templates/java/Makefile
1155 plugins/project-wizard/templates/java/src/Makefile
1156 plugins/project-wizard/templates/java/po/Makefile
1157 plugins/project-wizard/templates/python/Makefile
1158 plugins/project-wizard/templates/python/src/Makefile
1159 plugins/project-wizard/templates/python/po/Makefile
1160 plugins/project-wizard/templates/wxwin/Makefile
1161 plugins/project-wizard/templates/wxwin/src/Makefile
1162 plugins/project-wizard/templates/wxwin/po/Makefile
1163 plugins/project-wizard/templates/xlib/Makefile
1164 plugins/project-wizard/templates/xlib/src/Makefile
1165 plugins/project-wizard/templates/xlib/po/Makefile
1166 plugins/project-wizard/templates/xlib-dock/Makefile
1167 plugins/project-wizard/templates/xlib-dock/src/Makefile
1168 plugins/project-wizard/templates/xlib-dock/po/Makefile
1169 plugins/language-support-cpp-java/Makefile
1170 anjuta.desktop.in
1171 manuals/Makefile
1172 manuals/reference/Makefile
1173 manuals/reference/libanjuta/Makefile
1174 manuals/reference/libanjuta/version.xml
1175 manuals/anjuta-manual/Makefile
1176 manuals/anjuta-faqs/Makefile
1177 mime/Makefile
1179 echo " "
1180 echo "-------------------------------------------------------------------"
1181 echo "Conditionally built plugins:"
1182 echo "-------------------------------------------------------------------"
1183 if [ test -n "$SVN_INCLUDE" ]; then
1184         echo "Building subversion plugin: ............................YES"
1185 else
1186         echo "Building subversion plugin: ............................NO"
1187                 echo "        Requires apr (>= 0.9.4); http://subversion.org"
1188                 echo "        Requires apr-util (>= 0.9.4); http://subversion.org"
1189                 echo "        Requires neon (>= 0.24.5); http://subversion.org"
1190                 echo "        Requires subversion (>= 1.0.2); http://subversion.org"
1193 if [ test x$libgladeui_found = xyes ]; then
1194        echo "Building glade plugin: .................................YES"
1195 else
1196        echo "Building glade plugin: .................................NO"
1197        echo "        Requires glade-3 (>= 3.0.2)"
1200 if [ test x$devhelp_enabled = xyes ]; then
1201        echo "Building devhelp plugin: ...............................YES"
1202 else
1203        echo "Building devhelp plugin: ...............................NO"
1204        echo "        Requires devhelp"
1207 if [ test x$libgraphviz_found = xyes ]; then
1208         echo "Building class inheritance plugin: .....................YES"
1209         echo "Building performance profiler with function call chart: YES"
1210 else
1211         echo "Building class inheritance plugin: .....................NO"
1212         echo "        Requires graphviz (>= 2.6.0); http://graphviz.org"
1213         echo "Building performance profiler with function call chart: NO"
1214          echo "        Requires graphviz (>= 2.6.0); http://graphviz.org"
1217 if [ test x$valgrind = xyes ]; then
1218         echo "Building Valgrind debugger plugin: .....................YES"
1219 else
1220         echo "Building Valgrind debugger plugin: .....................NO"
1221         echo "          Requires binutils-dev"
1224 if [ test x$sourceview = xyes ]; then
1225         echo "Building GtkSourceView based editor: ...................YES"
1226 else
1227         echo "Building GtkSourceView based editor: ...................NO"
1230 if [ test x$scintilla = xyes ]; then
1231         echo "Building Scintilla based editor: .......................YES"
1232 else
1233         echo "Building Scintilla based editor: .......................NO"
1235 echo "-------------------------------------------------------------------"