Merge commit 'git-svn'
[anjuta-git-plugin.git] / configure.in
blobbffa7b120a358c7b52ae475776547b059a8e6dc3
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, 5)
7 m4_define(anjuta_micro_version,  0)
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.14.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.10.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.14.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 LIBDEVHELP_REQUIRED=0.13
42 GDL_REQUIRED=0.7.3
43 GNOMEBUILD_REQUIRED=0.3.0
44 GLADEUI_REQUIRED=3.2.0
45 LIBGRAPHVIZ_REQUIRED=1.0
46 NEON_REQUIRED=0.24.5
47 SUBVERSION_REQUIRED=1.0.2
48 GTKSOURCEVIEW_REQUIRED=2.1.2
49 GTKSOURCEVIEW_GNOME_REQUIRED=2.14
50 GTKSOURCEVIEW_GTK_REQUIRED=2.10
51 BINUTILS_REQUIRED=2.15.92
52 LIBWNCK_REQUIRED=2.12
53 GDA_REQUIRED=3.99.1
55 dnl LIBGTODO_REQUIRED=0.15
57 AC_SUBST(GLIB_REQUIRED)
58 AC_SUBST(GOBJECT_REQUIRED)
59 AC_SUBST(GMODULE_REQUIRED)
60 AC_SUBST(GDK_PIXBUF_REQUIRED)
61 AC_SUBST(GTK_REQUIRED)
62 AC_SUBST(ORBIT_REQUIRED)
63 AC_SUBST(LIBGLADE_REQUIRED)
64 AC_SUBST(GNOME_REQUIRED)
65 AC_SUBST(GNOME_CANVAS_REQUIRED)
66 AC_SUBST(GNOME_UI_REQUIRED)
67 AC_SUBST(GNOME_PRINT_REQUIRED)
68 AC_SUBST(GNOME_PRINT_UI_REQUIRED)
69 AC_SUBST(GNOME_VFS_REQUIRED)
70 AC_SUBST(GCONF_REQUIRED)
71 AC_SUBST(VTE_REQUIRED)
72 AC_SUBST(LIBXML_REQUIRED)
73 AC_SUBST(PANGO_REQUIRED)
74 AC_SUBST(VTE_NEW_REQUIRED)
75 AC_SUBST(LIBDEVHELP_REQUIRED)
76 AC_SUBST(GDL_REQUIRED)
77 AC_SUBST(GNOMEBUILD_REQUIRED)
78 AC_SUBST(GLADEUI_REQUIRED)
79 AC_SUBST(GLADEUI_SVN_REQUIRED)
80 AC_SUBST(LIBGRAPHVIZ_REQUIRED)
81 AC_SUBST(NEON_REQUIRED)
82 AC_SUBST(SUBVERSION_REQUIRED)
83 AC_SUBST(GTKSOURCEVIEW_REQUIRED)
84 AC_SUBST(GTKSOURCEVIEW_GNOME_REQUIRED)
85 AC_SUBST(GTKSOURCEVIEW_GTK_REQUIRED)
86 AC_SUBST(BINUTILS_REQUIRED)
87 AC_SUBST(LIBWNCK_REQUIRED)
88 AC_SUBST(GDA_REQUIRED)
90 dnl AC_SUBST(LIBGTODO_REQUIRED)
92 AM_INIT_AUTOMAKE([1.9 dist-bzip2 no-dist-gzip])
93 AC_CONFIG_HEADERS(config.h)
94 AC_DISABLE_STATIC
95 AM_MAINTAINER_MODE
96 GNOME_DOC_INIT
98 #Check for C Compiler
99 AC_PROG_CC
100 AC_PROG_CPP
101 AC_LANG_C
103 #Check for C++ Compiler
104 AC_PROG_CXX
105 AC_LANG_CPLUSPLUS
107 GNOME_COMPILE_WARNINGS(maximum)
108 GNOME_CXX_WARNINGS(yes)
109 AM_CFLAGS="$AM_CFLAGS $WARN_CFLAGS"
110 AM_CXXFLAGS="$AM_CXXFLAGS $WARN_CXXFLAGS"
112 dnl Enable debugging mode
113 AC_ARG_ENABLE(debug,
114   [  --enable-debug           Enable debug messages],
115   AM_CFLAGS="$AM_CFLAGS -DDEBUG"
116   AM_CXXFLAGS="$AM_CXXFLAGS -DDEBUG")
117 AC_SUBST(AM_CFLAGS)
118 AC_SUBST(AM_CXXFLAGS)
120 ANJUTA_LDFLAGS="-no-undefined"
121 ANJUTA_PLUGIN_LDFLAGS="-module -avoid-version -no-undefined"
122 AC_SUBST(ANJUTA_LDFLAG)
123 AC_SUBST(ANJUTA_PLUGIN_LDFLAGS)
125 dnl Disable deprecated APIs
126 AC_ARG_ENABLE(deprecated,
127   [  --disable-deprecated     Disable deprecated APIs],
128   [ if test "$enableval" = "no"; then
129     DEPRECATED_FLAGS="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED"
130   fi ],
131  [ DEPRECATED_FLAGS="" ])
132 AC_SUBST(DEPRECATED_FLAGS)
134 dnl Enable versioned user preferences directory
135 AC_ARG_WITH(pref-suffix,
136   [  --with-pref-suffix=VALUE Suffix to add to user preferences dir.],
137   PREF_SUFFIX="$withval")
139 AC_SUBST(PREF_SUFFIX)
140 AC_DEFINE_UNQUOTED(PREF_SUFFIX,
141       "${PREF_SUFFIX}",
142           [Suffix to add to preferences directory])
144 AC_ISC_POSIX
145 AC_HEADER_STDC
146 AM_DISABLE_STATIC
147 AM_PROG_LIBTOOL
149 AC_TYPE_SIGNAL
151 dnl ***************************************************************************
152 dnl Check for GConf stuff to handle schema installation
153 dnl ***************************************************************************
154 AC_PATH_PROG(GCONFTOOL, gconftool-2)
155 AM_GCONF_SOURCE_2
157 dnl ***************************************************************************
158 dnl Check for pkgconfig
159 dnl ***************************************************************************
160 AC_PATH_PROG(PKGCONFIG_CONFIG, pkg-config,no)
161 if test x$PKGCONFIG_CONFIG = xno; then
162   AC_MSG_ERROR(Please install the pkg-config package from http://www.freedesktop.org/software/pkgconfig/)
165 dnl pkg checks are split into separate packages instead of single package
166 dnl because different plugins have different requirements.
168 PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED)
169 AC_SUBST(GLIB_CFLAGS)
170 AC_SUBST(GLIB_LIBS)
172 PKG_CHECK_MODULES(GOBJECT, gobject-2.0 >= $GOBJECT_REQUIRED)
173 AC_SUBST(GOBJECT_CFLAGS)
174 AC_SUBST(GOBJECT_LIBS)
176 PKG_CHECK_MODULES(GMODULE, gmodule-2.0 >= $GMODULE_REQUIRED)
177 AC_SUBST(GMODULE_CFLAGS)
178 AC_SUBST(GMODULE_LIBS)
180 PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= $GTHREAD_REQUIRED)
181 AC_SUBST(GTHREAD_CFLAGS)
182 AC_SUBST(GTHREAD_LIBS)
184 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= $GTK_REQUIRED)
185 AC_SUBST(GTK_CFLAGS)
186 AC_SUBST(GTK_LIBS)
188 PKG_CHECK_MODULES(GDK_PIXBUF, gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED)
189 AC_SUBST(GDK_PIXBUF_CFLAGS)
190 AC_SUBST(GDK_PIXBUF_LIBS)
192 PKG_CHECK_MODULES(ORBIT, ORBit-2.0 >= $ORBIT_REQUIRED)
193 AC_SUBST(ORBIT_CFLAGS)
194 AC_SUBST(ORBIT_LIBS)
196 PKG_CHECK_MODULES(GLADE, libglade-2.0 >= $LIBGLADE_REQUIRED)
197 AC_SUBST(GLADE_CFLAGS)
198 AC_SUBST(GLADE_LIBS)
200 PKG_CHECK_MODULES(GNOME, libgnome-2.0 >= $GNOME_REQUIRED)
201 AC_SUBST(GNOME_CFLAGS)
202 AC_SUBST(GNOME_LIBS)
204 PKG_CHECK_MODULES(GNOME_CANVAS, libgnomecanvas-2.0 >= $GNOME_CANVAS_REQUIRED)
205 AC_SUBST(GNOME_CANVAS_CFLAGS)
206 AC_SUBST(GNOME_CANVAS_LIBS)
208 PKG_CHECK_MODULES(GNOME_UI, libgnomeui-2.0 >= $GNOME_UI_REQUIRED)
209 AC_SUBST(GNOME_UI_CFLAGS)
210 AC_SUBST(GNOME_UI_LIBS)
212 PKG_CHECK_MODULES(GNOME_VFS, gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED)
213 AC_SUBST(GNOME_VFS_CFLAGS)
214 AC_SUBST(GNOME_VFS_LIBS)
216 PKG_CHECK_MODULES(GNOME_VFS_MODULE, gnome-vfs-module-2.0 >= $GNOME_VFS_REQUIRED)
217 AC_SUBST(GNOME_VFS_MODULE_CFLAGS)
218 AC_SUBST(GNOME_VFS_MODULE_LIBS)
220 PKG_CHECK_MODULES(GCONF, gconf-2.0 >= $GCONF_REQUIRED)
221 AC_SUBST(GCONF_CFLAGS)
222 AC_SUBST(GCONF_LIBS)
224 PKG_CHECK_MODULES(VTE, vte >= $VTE_REQUIRED)
225 AC_SUBST(VTE_CFLAGS)
226 AC_SUBST(VTE_LIBS)
228 PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED)
229 AC_SUBST(LIBXML_CFLAGS)
230 AC_SUBST(LIBXML_LIBS)
232 PKG_CHECK_MODULES(PANGO, pango >= $PANGO_REQUIRED)
233 AC_SUBST(PANGO_CFLAGS)
234 AC_SUBST(PANGO_LIBS)
236 PKG_CHECK_MODULES(GDL, gdl-1.0 >= $GDL_REQUIRED gdl-gnome-1.0 >= $GDL_REQUIRED)
237 AC_SUBST(GDL_CFLAGS)
238 AC_SUBST(GDL_LIBS)
240 PKG_CHECK_MODULES(LIBXSLT, libxslt)
241 AC_SUBST(LIBXSLT_CFLAGS)
242 AC_SUBST(LIBXSLT_LIBS)
244 dnl Check for autogen
245 dnl -----------------
246 AC_PATH_PROG(AUTOGEN_PATH, autogen,no)
247 if test x$AUTOGEN_PATH = xno; then
248    AC_MSG_ERROR([Couldn't find autogen, please install the autogen package. You can get it from http://autogen.sourceforge.net/])
251 dnl Check for Devhelp
252 dnl -----------------
254 AC_ARG_ENABLE(plugin-devhelp,
255   [  --disable-plugin-devhelp        Disable devhelp plugin support in Anjuta.],
256   [ if test "$enableval" = "no"; then
257        user_disabled_devhelp=1
258     fi ],
259   [ user_disabled_devhelp=0 ] )
261 AC_MSG_CHECKING(if devhelp plugin is disabled)
262 if test "$user_disabled_devhelp" = 1; then
263         AC_MSG_RESULT(yes)
264         devhelp_enabled="no"
265 else
266         AC_MSG_RESULT(no)
267         devhelp_old=yes
268         PKG_CHECK_MODULES(PLUGIN_DEVHELP, 
269                                 [libdevhelp-1.0 >= $LIBDEVHELP_REQUIRED],
270                                          [
271                                             devhelp_old=no
272                                                 devhelp_enabled=yes
273                                          ], [
274                                                    AC_MSG_RESULT([version >= 0.11 not found])
275                                                    devhelp_old=yes
276                                                    devhelp_enabled=no
277                                          ])
278         if test x$devhelp_old = xyes; then
279           PKG_CHECK_MODULES(PLUGIN_DEVHELP, [libdevhelp-1.0 >= 0.9], [devhelp_enabled=yes], [devhelp_enabled=no])
280                 if test x$devhelp_enabled = xyes; then
281               AC_DEFINE(HAVE_OLD_DEVHELP, 1, [If old devhelp (>= 0.9 < 0.11) is installed])
282                 fi
283         fi
284         AC_SUBST(PLUGIN_DEVHELP_CFLAGS)
285         AC_SUBST(PLUGIN_DEVHELP_LIBS)
288 if test x$devhelp_enabled = xyes; then
289         GECKO_HOME=`$PKGCONFIG_CONFIG --variable=gecko_home libdevhelp-1.0`
290         if test x$GECKO_HOME != x; then
291                 ANJUTA_LDFLAGS="$ANJUTA_LDFLAGS -R$GECKO_HOME"
292         fi
294 AC_SUBST(ANJUTA_LDFLAGS)
296 AM_CONDITIONAL(HAVE_PLUGIN_DEVHELP, [test x$devhelp_enabled = xyes])
298 dnl Check for GTodo
299 dnl -----------------
300 dnl PKG_CHECK_MODULES(PLUGIN_GTODO, libgtodo-1.0 >= $LIBGTODO_REQUIRED)
301 dnl AC_SUBST(PLUGIN_GTODO_CFLAGS)
302 dnl AC_SUBST(PLUGIN_GTODO_LIBS)
304 dnl Check for Gnome Build
305 dnl ---------------------
307 PKG_CHECK_MODULES(PLUGIN_GNOMEBUILD, gnome-build-1.0 >= $GNOMEBUILD_REQUIRED)
308 AC_SUBST(PLUGIN_GNOMEBUILD_CFLAGS)
309 AC_SUBST(PLUGIN_GNOMEBUILD_LIBS)
311 dnl Check for Glade3
312 dnl ---------------------
314 AC_ARG_ENABLE(plugin-glade,
315   [  --disable-plugin-glade        Disable glade plugin support in Anjuta.],
316   [ if test "$enableval" = "no"; then
317        user_disabled_glade=1
318     fi ],
319   [ user_disabled_glade=0 ] )
321 AC_MSG_CHECKING(if glade plugin is disabled)
322 if test "$user_disabled_glade" = 1; then
323         AC_MSG_RESULT(yes)
324         libgladeui_found="no"
325 else
326         AC_MSG_RESULT(no)
327         AC_PATH_PROG(PKG_PATH, pkg-config, no)
328         gladeui_version=0
329         PKG_CHECK_MODULES(PLUGIN_GLADE, gladeui-1.0,
330             [
331                 libgladeui_found="yes"
332                 gladeui_version=`$PKG_PATH --modversion gladeui-1.0 | sed -e 's,\.,,g'`
333             ], [
334                 libgladeui_found="no"
335             ])
336         if test x$libgladeui_found = xno; then
337             PKG_CHECK_MODULES(PLUGIN_GLADE, [libgladeui-1.0 >= $GLADEUI_REQUIRED],
338                 [
339                         libgladeui_found="yes"
340                         gladeui_version=`$PKG_PATH --modversion libgladeui-1.0 | sed -e 's,\.,,g'`
341                 ], [
342                         libgladeui_found="no"
343                 ])
344         fi
345         AC_DEFINE_UNQUOTED(GLADEUI_VERSION, [$gladeui_version], [GLADEUI version])
346         AC_SUBST(GLADEUI_VERSION)
347         AC_SUBST(PLUGIN_GLADE_CFLAGS)
348         AC_SUBST(PLUGIN_GLADE_LIBS)
351 AM_CONDITIONAL(HAVE_PLUGIN_GLADE, [test x$libgladeui_found = xyes])
353 dnl Check for graphviz (class inheritance and profiler plugins)
354 dnl --------------------------------------------------------------------------
355 dnl FIXME: For some strange reason graphviz-devel rpm install the *.pc files
356 dnl in /usr/lib/graphviz/pkgconfig, instead of usual /usr/lib/pkgconfig. This
357 dnl makes pkgconfig check fail if we don't add the above path in
358 dnl PKG_CONFIG_PATH. We have added both /usr/lib/graphviz/pkgconfig and
359 dnl /usr/local/lib/pkgconfig paths. If graphviz is installed in other prefix
360 dnl (other than /usr or /usr/local or the current installation prefix),
361 dnl following pkgconfig check will fail.
362 dnl --------------------------------------------------------------------------
363 AC_ARG_ENABLE(graphviz,
364         [ --disable-graphviz            Disable GraphViz support in Anjuta], 
365         [ if test "$enableval" = "no"; then
366                 user_disabled_graphviz=1
367           fi ],
368         [ user_disabled_graphviz=0 ])
370 AC_MSG_CHECKING(if GraphViz support is disabled)
371 if test "$user_disabled_graphviz" = 1; then
372         AC_MSG_RESULT(yes)
373         libgraphviz_found="no"
374 else
375         AC_MSG_RESULT(no)
376         
377         dnl Set pkgconfig path
378         ANJUTA_PKG_CONFIG_PATH_SAVE="${PKG_CONFIG_PATH}"
379         PKG_CONFIG_PATH="/usr/lib/graphviz/pkgconfig:$PKG_CONFIG_PATH"
380         PKG_CONFIG_PATH="/usr/local/lib/graphviz/pkgconfig:$PKG_CONFIG_PATH"
381         PKG_CONFIG_PATH="/usr/lib64/graphviz/pkgconfig:$PKG_CONFIG_PATH"
382         PKG_CONFIG_PATH="/usr/local/lib64/graphviz/pkgconfig:$PKG_CONFIG_PATH"
383         
384         anjuta_save_prefix="$prefix"
385         test "x$prefix" = xNONE && prefix=$ac_default_prefix
386         graphviz_pkgconfig=`eval echo ${libdir}/graphviz/pkgconfig`
387         PKG_CONFIG_PATH="$graphviz_pkgconfig:$PKG_CONFIG_PATH"
388         prefix="$anjuta_save_prefix"
390         export PKG_CONFIG_PATH
391         PKG_CHECK_MODULES(GRAPHVIZ,
392                 [libgvc >= $LIBGRAPHVIZ_REQUIRED libgraph >= $LIBGRAPHVIZ_REQUIRED], 
393                 [libgraphviz_found="yes"],
394                 [libgraphviz_found="no"])
395         AC_SUBST(GRAPHVIZ_CFLAGS)
396         AC_SUBST(GRAPHVIZ_LIBS)
397         
398         dnl Restore pkgconfig path
399         PKG_CONFIG_PATH="${ANJUTA_PKG_CONFIG_PATH_SAVE}"
400         export PKG_CONFIG_PATH
403 AM_CONDITIONAL(HAVE_GRAPHVIZ, [test x$libgraphviz_found = xyes])
405 dnl Define HAVE_GRAPHVIZ to disable Function Call Chart in the Profiler if 
406 dnl Graphviz isn't on the system
407 if test "$libgraphviz_found" = yes; then
408         AC_DEFINE(HAVE_GRAPHVIZ, [], [Define if we have GraphViz >= 2.6.0])
411 dnl Build gtksourceview plugin only on gnome 2.14 and gtk 2.10
412 dnl -------------------------------------------------------------
414 AC_ARG_ENABLE(plugin-sourceview,
415         [ --disable-plugin-sourceview   Disable gtksourceview based editor in Anjuta], 
416         [ if test "$enableval" = "no"; then
417                 user_disabled_sourceview=1
418           fi ],
419         [ user_disabled_sourceview=0 ])
421 AC_MSG_CHECKING(if sourceview plugin is disabled)
422 if test "$user_disabled_sourceview" = 1; then
423         AC_MSG_RESULT(yes)
424         sourceview="no"
425 else
426         AC_MSG_RESULT(no)
427         
428         PKG_CHECK_MODULES(PLUGIN_SOURCEVIEW,
429                 [libgnome-2.0 >= $GTKSOURCEVIEW_GNOME_REQUIRED,
430                 gtk+-2.0 >= $GTKSOURCEVIEW_GTK_REQUIRED,
431                 gtksourceview-2.0 >= $GTKSOURCEVIEW_REQUIRED],
432                 [sourceview="yes"],
433                 [sourceview="no"])
434         AC_SUBST(PLUGIN_SOURCEVIEW_CFLAGS)
435         AC_SUBST(PLUGIN_SOURCEVIEW_LIBS)
438 AM_CONDITIONAL(HAVE_PLUGIN_SOURCEVIEW, [test x$sourceview = xyes])
440 dnl Scintilla Editor
441 dnl -------------------------------------------------------------
443 AC_ARG_ENABLE(plugin-scintilla,
444         [ --disable-plugin-scintilla    Disable Scintilla based editor in Anjuta], 
445         [ if test "$enableval" = "no"; then
446                 user_disabled_scintilla=1
447           fi ],
448         [ user_disabled_scintilla=0 ])
450 AC_MSG_CHECKING(if scintilla plugin is disabled)
451 if test "$user_disabled_scintilla" = 1; then
452         AC_MSG_RESULT(yes)
453         scintilla="no"
454 else
455         PKG_CHECK_MODULES(PLUGIN_SCINTILLA,
456                 [libgnomeprint-2.2 >= $GNOME_PRINT_REQUIRED,
457                  libgnomeprintui-2.2 >= $GNOME_PRINT_UI_REQUIRED],
458                 [scintilla="yes"],
459                 [scintilla="no"])
460         AC_SUBST(PLUGIN_SCINTILLA_CFLAGS)
461         AC_SUBST(PLUGIN_SCINTILLA_LIBS)
463 AM_CONDITIONAL(HAVE_PLUGIN_SCINTILLA, [test x$scintilla = xyes])
465 dnl Build symbol-db only if we have gda
466 dnl -------------------------------------------------------------
467 user_disabled_symboldb=1
468 AC_ARG_ENABLE(plugin-symbol-db,
469         [ --enable-plugin-symbol-db     Enable experimental symbol-db plugin], 
470         [ if test "$enableval" = "yes"; then
471                 user_disabled_symboldb=0
472           fi ],
473         [ user_disabled_symboldb=1 ])
475 AC_MSG_CHECKING(if symbol-db plugin is disabled)
476 if test "$user_disabled_symboldb" = 1; then
477         AC_MSG_RESULT(yes)
478         symboldb="no"
479 else
480         AC_MSG_RESULT(no)
481         
482         PKG_CHECK_MODULES(PLUGIN_SYMBOL_DB,
483                 [libgda-4.0 >= $GDA_REQUIRED],
484                 [symboldb="yes"],
485                 [symboldb="no"])
486         AC_SUBST(PLUGIN_SYMBOL_DB_CFLAGS)
487         AC_SUBST(PLUGIN_SYMBOL_DB_LIBS)
490 AM_CONDITIONAL(HAVE_PLUGIN_SYMBOL_DB, [test x$symboldb = xyes])
492 dnl Valgrind plugin
493 dnl check for libbfd
494 dnl -------------------------------------------------------------
496 AC_ARG_ENABLE(plugin-valgrind,
497         [ --disable-plugin-valgrind     Disable Valgrind plugin], 
498         [ if test "$enableval" = "no"; then
499                 user_disabled_valgrind=1
500           fi ],
501         [ user_disabled_valgrind=0 ])
503 AC_MSG_CHECKING(if valgrind plugin is disabled)
504 if test "$user_disabled_valgrind" = 1; then
505         AC_MSG_RESULT(yes)
506         valgrind="no"
507 else
508         AC_MSG_RESULT(no)
509         valgrind="yes"
512 AC_CHECK_LIB(bfd, bfd_get_error, [PLUGIN_VALGRIND_LIBS="-Wl,-Bstatic -lbfd -liberty -Wl,-Bdynamic"],
513    valgrind="no",
514   -liberty)
516 AC_SUBST(PLUGIN_VALGRIND_LIBS)
517 AM_CONDITIONAL(HAVE_PLUGIN_VALGRIND, [test x$valgrind = xyes])
522 dnl we need gconftool-2 in order to install the schema
523 AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
525 if test "x$GCONFTOOL" = "xno"; then
526   AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
529 AM_GCONF_SOURCE_2
534 dnl check for bfd_get_section_size_before_reloc() in libbfd
535 AC_MSG_CHECKING(for bfd_get_section_size_before_reloc)
536 AC_TRY_LINK([
537         #include <bfd.h>
538         ], [
539         asection *section;
541         bfd_get_section_size_before_reloc (section);
542         ],
543         AC_MSG_RESULT(yes)
544         AC_DEFINE(HAVE_BFD_GET_SECTION_SIZE_BEFORE_RELOC, [], [Define if libbfd
545 contains the function bfd_get_section_size_before_reloc])
547         AC_MSG_RESULT(no)
553 dnl Setup Anjuta Library flags
554 dnl --------------------------
555 LIBANJUTA_CFLAGS='$(GNOME_UI_CFLAGS) $(GLADE_CFLAGS) -I$(top_srcdir) -DPACKAGE_PIXMAPS_DIR=\""$(datadir)/pixmaps/$(PACKAGE)\"" -DPACKAGE_DATA_DIR=\""$(datadir)/$(PACKAGE)"\"'
556 LIBANJUTA_LIBS='$(top_builddir)/libanjuta/libanjuta.la'
557 AC_SUBST(LIBANJUTA_CFLAGS)
558 AC_SUBST(LIBANJUTA_LIBS)
560 dnl Setup Plugin directories
561 dnl ------------------------
562 anjuta_plugin_dir='$(libdir)/anjuta'
563 anjuta_data_dir='$(datadir)/anjuta'
564 anjuta_ui_dir='$(datadir)/anjuta/ui'
565 anjuta_glade_dir='$(datadir)/anjuta/glade'
566 anjuta_image_dir='$(datadir)/pixmaps/anjuta'
567 AC_SUBST(anjuta_plugin_dir)
568 AC_SUBST(anjuta_data_dir)
569 AC_SUBST(anjuta_ui_dir)
570 AC_SUBST(anjuta_glade_dir)
571 AC_SUBST(anjuta_image_dir)
573 dnl ***************************************************************************
574 dnl Check for old vte version
575 dnl ***************************************************************************
576 PKG_CHECK_MODULES(VTE, vte >= $VTE_NEW_REQUIRED, OLD_VTE=0, OLD_VTE=1)
577 AC_SUBST(OLD_VTE)
578 AC_DEFINE_UNQUOTED(OLD_VTE, $OLD_VTE, [Old version of vte])
580 dnl ***************************************************************************
581 dnl Check for marshal and enum generators
582 dnl ***************************************************************************
583 GLIB_GENMARSHAL="`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`"
584 AC_SUBST(GLIB_GENMARSHAL)
585 GLIB_MKENUMS="`$PKG_CONFIG --variable=glib_mkenums glib-2.0`"
586 AC_SUBST(GLIB_MKENUMS)
588 dnl Set up Glade 3 catlog information
589 dnl ---------------------
590 GLADE_PLUGINS_PATH="`$PKG_CONFIG --variable=moduledir gladeui-1.0`"
591 AC_SUBST(GLADE_PLUGINS_PATH)
592 GLADE_CATALOG_PATH="`$PKG_CONFIG --variable=catalogdir gladeui-1.0`"
593 AC_SUBST(GLADE_CATALOG_PATH)
595 dnl ***************************************************************************
596 dnl Internatinalization
597 dnl ***************************************************************************
598 GETTEXT_PACKAGE=anjuta
599 AC_SUBST(GETTEXT_PACKAGE)
600 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
601 AM_GLIB_GNU_GETTEXT
602 IT_PROG_INTLTOOL([0.35.0])
604 dnl ***************************************************************************
605 dnl Check for gtk-doc.
606 dnl ***************************************************************************
607 GTK_DOC_CHECK([1.4])
609 dnl ***************************************************************************
610 dnl Check for Gnome XML [Is this still required?]
611 dnl ***************************************************************************
612 dnl GNOME_XML_CHECK
614 dnl ***************************************************************************
615 dnl Check for ScrollKeeper [No documentation for now]
616 dnl ***************************************************************************
617 dnl AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no)
618 dnl if test x$SCROLLKEEPER_CONFIG = xno; then
619 dnl   AC_MSG_ERROR(Couldn't find scrollkeeper-config, please install the scrollkeeper package. You can get it from http://scrollkeeper.sourceforge.net/)
620 dnl fi
621 dnl SCROLLKEEPER_REQUIRED=0.1.4
622 dnl AC_SUBST(SCROLLKEEPER_REQUIRED)
624 dnl ***************************************************************************
625 dnl Checking for scrollkeeper version [No documentation for now]
626 dnl ***************************************************************************
627 dnl AC_MSG_CHECKING(for scrollkeeper version number)
628 dnl if scrollkeeper-config --version > /dev/null 2>&1; then 
629 dnl    version=`scrollkeeper-config --version`; \
630 dnl    vers=`echo $version | awk 'BEGIN { FS = "."; } { print $1 * 1000 + $2;}'`; \
631 dnl    AC_MSG_RESULT(found $version)
632 dnl    SCROLLKEEPER_VERSION_NUM=$vers
633 dnl else
634 dnl    AC_MSG_ERROR(Did not find scrollkeeper installed)
635 dnl fi
636 dnl AC_SUBST(SCROLLKEEPER_VERSION_NUM)
638 dnl ***************************************************************************
639 dnl Tagmanager checks.
640 dnl ***************************************************************************
642 dnl Define convenience macros
643 dnl -------------------------
644 dnl CHECK_HEADER_DEFINE(LABEL, HEADER [,ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ] ])
645 AC_DEFUN([CHECK_HEADER_DEFINE],
647         AC_MSG_CHECKING("if $1 is defined in $2")
648         AC_EGREP_CPP(yes,
649 [#include <$2>
650 #ifdef $1
651   yes
652 #endif
653 ], [
654         AC_MSG_RESULT(yes)
655         $3
656 ], [
657         AC_MSG_RESULT(no)
658         $4
659 ]) ])
661 dnl Checks for header files.
662 AC_CHECK_HEADERS(dirent.h fcntl.h fnmatch.h stat.h stdlib.h string.h stdint.h)
663 AC_CHECK_HEADERS(time.h types.h unistd.h)
664 AC_CHECK_HEADERS(sys/dir.h sys/stat.h sys/times.h sys/types.h)
666 dnl Checks for typedefs, structures, and compiler characteristics.
668 dnl Disable cygwin check until someone fixes that stupid autoconf warnings.
669 dnl AC_CYGWIN
670 dnl AC_MINGW
672 AC_C_CONST
673 AC_OBJEXT
674 AC_EXEEXT
676 AC_TYPE_SIZE_T
677 AC_TYPE_OFF_T
679 AC_MSG_CHECKING("for fpos_t")
680 AC_EGREP_HEADER(fpos_t, stdio.h, AC_MSG_RESULT(yes),
682     AC_MSG_RESULT(no)
683     AC_DEFINE(fpos_t, long, [fpos_t is type long])
686 AC_MSG_CHECKING("for clock_t")
687 AC_EGREP_HEADER(clock_t, time.h, AC_MSG_RESULT(yes),
689     AC_MSG_RESULT(no)
690     AC_DEFINE(clock_t, long, [clock_t is type long])
693 CHECK_HEADER_DEFINE(L_tmpnam, stdio.h,, AC_DEFINE(L_tmpnam, 20, [L_tmpname is 20]))
695 CHECK_HEADER_DEFINE(INT_MAX, limits.h,,
696     CHECK_HEADER_DEFINE(MAXINT, limits.h,
697         AC_DEFINE(INT_MAX, MAXINT, [Maximum int size]), AC_DEFINE(INT_MAX, 32767, [Maximum int size])))
699 AC_MSG_CHECKING(if struct stat contains st_ino)
700 AC_TRY_COMPILE([#include <sys/stat.h>], [
701     struct stat st;
702     stat(".", &st);
703     if (st.st_ino > 0)
704         exit(0);
705 ], have_st_ino=yes, have_st_ino=no)
706 AC_MSG_RESULT($have_st_ino)
707 if test yes = "$have_st_ino"; then
708     AC_DEFINE(HAVE_STAT_ST_INO,,[Have stat st_ino])
712 dnl Check for function forkpty in libutil
713 AC_CHECK_LIB(util, forkpty)
715 dnl Checks for library functions.
716 AC_CHECK_FUNCS(fnmatch)
717 AC_CHECK_FUNCS(strstr)
718 AC_CHECK_FUNCS(stricmp)
719 AC_CHECK_FUNCS(strnicmp)
720 AC_CHECK_FUNCS(getline)
722 dnl for libegg/egg-recent-model.c
723 AC_CHECK_DECLS([lockf])
724 AC_CHECK_FUNCS([lockf])
726 AC_CHECK_FUNCS(fgetpos, have_fgetpos=yes)
728 dnl SEEK_SET should be in stdio.h, but may be in unistd.h on SunOS 4.1.x
729 if test "$have_fgetpos" != yes ; then
730     CHECK_HEADER_DEFINE(SEEK_SET, stdio.h,,
731         CHECK_HEADER_DEFINE(SEEK_SET, unistd.h,,
732             AC_DEFINE(SEEK_SET, 0, [Seek set 0])))
735 AC_CHECK_FUNCS(mkstemp, have_mkstemp=yes)
736 if test "$have_mkstemp" != yes ; then
737     AC_CHECK_FUNCS(chmod)
738     if test "$tmpdir_specified" = yes ; then
739         AC_MSG_RESULT(use of tmpnam overrides temporary directory selection)
740     fi
741 else
742     AC_MSG_CHECKING(directory to use for temporary files)
743     if test -z "$enable_tmpdir" -o "$enable_tmpdir" = no -o "$enable_tmpdir" = yes ;
744         then tmpdir=/tmp
745         else tmpdir="$enable_tmpdir"
746     fi
747     if test -d $tmpdir ; then
748         AC_MSG_RESULT($tmpdir)
749         AC_DEFINE_UNQUOTED(TMPDIR, "$tmpdir", [Directory for temporary files])
750     else
751         AC_MSG_WARN($tmpdir does not exist)
752     fi
755 AC_CHECK_FUNCS(strerror opendir)
756 AC_CHECK_FUNCS(clock times, break)
757 AC_CHECK_FUNCS(remove, have_remove=yes,
758     CHECK_HEADER_DEFINE(remove, unistd.h,, AC_DEFINE(remove, unlink, [Remove is unlink])))
760 AC_CHECK_FUNCS(truncate, have_truncate=yes)
761 dnl === Cannot nest AC_CHECK_FUNCS() calls
762 if test "$have_truncate" != yes  ; then
763     AC_CHECK_FUNCS(ftruncate, have_ftruncate=yes)
764     if test "$have_ftruncate" != yes ; then
765         AC_CHECK_FUNCS(chsize)
766     fi
769 AC_CHECK_FUNCS(setenv, have_setenv=yes)
770 dnl === Cannot nest AC_CHECK_FUNCS() calls
771 if test "$have_setenv" != yes ; then
772     AC_CHECK_FUNCS(putenv, have_putenv=yes)
773     if test "$have_putenv" = yes ; then
774         AC_EGREP_HEADER(putenv, stdlib.h, have_putenv_prototype=yes)
775         if test "$have_putenv_prototype" = yes ; then
776             AC_MSG_CHECKING("putenv prototype")
777             AC_EGREP_HEADER([[^A-Za-zo-9_]putenv[   ]*\(.*const.*\)[    ]*;],
778                 stdlib.h, AC_MSG_RESULT(correct),
779                 [
780                     AC_MSG_RESULT(no const)
781                     AC_DEFINE(NON_CONST_PUTENV_PROTOTYPE,,[putenv has non constant prototype])
782                 ])
783         fi
784     fi
788 dnl if test yes = "$CYGWIN"; then with_posix_regex=no; fi
789 if test no != "$with_posix_regex"; then
790     AC_CHECK_FUNCS(regcomp)
791     AC_MSG_CHECKING(if regcomp works)
792     AC_TRY_RUN([
793 #include <sys/types.h>
794 #include <regex.h>
795 main() {
796     regex_t patbuf;
797     exit (regcomp (&patbuf, "/hello/", 0) != 0);
798 }],regcomp_works=yes,regcomp_works=no,AC_DEFINE(CHECK_REGCOMP,,[Check regcomp]))
799     AC_MSG_RESULT($regcomp_works)
800     if test yes != "$regcomp_works"; then
801         AC_DEFINE(REGCOMP_BROKEN,,[Regcomp is broken])
802     fi
805 dnl -----------------------------
806 dnl Checks for FreeBSD Build
807 dnl -----------------------------
808 AC_MSG_CHECKING(if building on FreeBSD)
810 if test `uname -s` = "FreeBSD" ; then
811         AC_MSG_RESULT(yes)
812         FREEBSD_BUILD=-DFREEBSD
813         AC_SUBST(FREEBSD_BUILD)
814         AC_PATH_PROG(GMAKE, gmake, no)
815         if test "x$GMAKE" = "xno"; then
816                 AC_ERROR(You need gmake installed to build Anjuta!)
817         fi
818 else
819         AC_MSG_RESULT(no)
820         GMAKE="make"
823 AC_SUBST(GMAKE)
825 dnl Checks for missing prototypes
826 dnl -----------------------------
827 AC_CHECKING("for missing prototypes")
829 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))])
831 if test "$have_remove" = yes ; then
832     CHECK_PROTO(remove, stdio.h)
833 else
834     CHECK_PROTO(unlink, unistd.h)
836 CHECK_PROTO(malloc, stdlib.h)
837 CHECK_PROTO(getenv, stdlib.h)
838 CHECK_PROTO(stat,   sys/stat.h)
839 CHECK_PROTO(lstat,  sys/stat.h)
840 if test "$have_fgetpos" = yes ; then
841     CHECK_PROTO(fgetpos, stdio.h)
843 if test "$have_truncate" = yes ; then
844     CHECK_PROTO(truncate, unistd.h)
846 if test "$have_ftruncate" = yes ; then
847     CHECK_PROTO(ftruncate, unistd.h)
850 dnl  **********************************************************
851 dnl  check if we have svn libraries to build subversion plugin
852 dnl  (stolen from kdevelop ;-)
853 dnl  **********************************************************
855 AC_MSG_CHECKING(for Subversion svn-config)
856 AC_ARG_WITH(subversion-dir,
857                 [  --with-subversion-dir=DIR           where Subversion is installed ],
858                 [
859                                 SVNCONFIG="$withval/bin/svn-config"
860                 ])
862 if test -z "$SVNCONFIG"; then
863                 _SVNCONFIG="`svn-config --prefix 2> /dev/null`"
864                 if test -n "$_SVNCONFIG"; then
865                                 SVNCONFIG="$_SVNCONFIG/bin/svn-config"
866                 fi
869 AC_SUBST(SVNCONFIG)
870 if test -x "$SVNCONFIG"; then
871                 SVNLD="`$SVNCONFIG --ldflags 2> /dev/null`"
872                 SVN_LIB="`$SVNCONFIG --libs --cflags 2> /dev/null` -lsvn_client-1 -lsvn_subr-1"
873                 dnl ugly hack for subversion svn-config problems in 0.14.x, to be removed when svn-config is fixed
874                 SVN_INCLUDE="`$SVNCONFIG --includes 2> /dev/null` -I$_SVNCONFIG/include/subversion-1/"
875                 AC_MSG_RESULT(yes)
876 else
877                 AC_MSG_RESULT(not found)
878                 
879                 dnl just a fallback to debian's config so that it works for me :)
880                 AC_ARG_WITH(svn-include,
881                                                                 [[  --with-svn-include=DIR   Use the given path to the subversion headers.]],
882                                                                 [
883                                                                 if test "$withval" != "yes" -a "$withval" != ""; then
884                                                                                 SVN_INCLUDES=$withval
885                                                                 fi
886                                                                 ])
887                 if test -z "$SVN_INCLUDES"; then
888                         SVN_INCLUDES="/usr/local/include /usr/include"
889                 fi
890                 AC_MSG_CHECKING([for Subversion headers])
891                 SVN_INCLUDE=""
892                 for VALUE in $SVN_INCLUDES ; do
893                                 if test -f $VALUE/subversion-1/svn_types.h ; then
894                                                 SVN_INCLUDE=$VALUE/subversion-1
895                                                 break
896                                 fi
897                                 if test -f $VALUE/svn_types.h ; then
898                                                 SVN_INCLUDE=$VALUE
899                                                 break
900                                 fi
901                 done
902                 if test $SVN_INCLUDE ; then
903                                 AC_MSG_RESULT([found])
904                 else
905                                 AC_MSG_RESULT([not found])
906                 fi
907                 SVN_LIBS="/usr/local/lib /usr/lib"
908                 AC_ARG_WITH(svn-lib,
909                                                 [[  --with-svn-lib=DIR  Use the given path to the subversion libraries.]],
910                                                 [
911                                                         if test "$withval" != "yes" -a "$withval" != ""; then
912                                                                 SVN_LIBS=$withval
913                                                         fi
914                                                 ])
915                 AC_MSG_CHECKING([for Subversion libraries])
916                 SVN_LIB=""
917                 for VALUE in $SVN_LIBS ; do
918                                 if ls $VALUE/libsvn_client-1.* 1>/dev/null 2>&1; then
919                                                 SVN_LIB=$VALUE
920                                                 break
921                                 fi
922                 done
923                 if test $SVN_LIB ; then
924                                 AC_MSG_RESULT([found])
925                 else
926                                 AC_MSG_RESULT([not found])
927                 fi
930 dnl ******************************************************************
931 dnl Check for extra libs required by subversion.
932 dnl FIXME: This should actually be done by subversion and not by us.
933 dnl ******************************************************************
935 AC_ARG_ENABLE(plugin-subversion,
936   [  --disable-plugin-subversion        Disable subversion support in Anjuta.],
937   [ if test "$enableval" = "no"; then
938         user_disabled_subversion=1
939     fi ],
940   [ user_disabled_subversion=0 ] )
942 AC_MSG_CHECKING(if subversion support is disabled)
943 if test "$user_disabled_subversion" = 1; then
944         AC_MSG_RESULT(yes)
945         SVN_INCLUDE=""
946         SVN_LIB=""
947 else
948         AC_MSG_RESULT(no)
951 if test -n "$SVN_INCLUDE" ; then
952         dnl ------------------------------------
953         dnl APR. Required by subversion (devel)
954         dnl ------------------------------------
955         
956         APR_CONFIGS="apr-config /usr/local/apr/bin/apr-config/ apr-1-config "
957         AC_ARG_WITH(apr-config,
958         [[  --with-apr-config=FILE    Use the given path to apr-config when determining
959                                                                 APR configuration; defaults to "apr-config"]],
960         [
961         if test "$withval" != "yes" -a "$withval" != ""; then
962           APR_CONFIGS=$withval
963         fi
964         ])
965         AC_MSG_CHECKING([for APR])
966         APR_CONFIG=""
967         for VALUE in $APR_CONFIGS ; do
968                         if $VALUE --cflags > /dev/null 2>&1 ; then
969                                         APR_CONFIG=$VALUE
970                                         break
971                         fi
972         done
973         test $VALUE && APR_CONFIG=$VALUE
974         if test $APR_CONFIG ; then
975                 AC_MSG_RESULT([found])
976                 APR_CFLAGS="`$APR_CONFIG --cflags` `$APR_CONFIG --cppflags`"
977                 APR_INCLUDE="`$APR_CONFIG --includes`"
978                 APR_LIBS="`$APR_CONFIG --link-ld --libs`"
979         else
980                 AC_MSG_RESULT([not found])
981                 dnl AC_MSG_ERROR([APR is required. Try --with-apr-config.])
982         fi
983         
984         dnl -----------------------------------------
985         dnl APR util. Required by subversion (devel)
986         dnl------------------------------------------
987         
988         APU_CONFIGS="apu-config /usr/local/apr/bin/apu-config apu-1-config"
989         AC_ARG_WITH(apu-config,
990         [[  --with-apu-config=FILE    Use the given path to apu-config when determining
991                                                                 APR util configuration; defaults to "apu-config"]],
992         [
993                 if test "$withval" != "yes" -a "$withval" != ""; then
994                         APU_CONFIGS=$withval
995                 fi
996         ])
997         AC_MSG_CHECKING([for APR util])
998         APU_CONFIG=""
999         for VALUE in $APU_CONFIGS ; do
1000                         if $VALUE --includes > /dev/null 2>&1 ; then
1001                                         APU_CONFIG=$VALUE
1002                                         break
1003                         fi
1004         done
1005         if test $APU_CONFIG ; then
1006                 AC_MSG_RESULT([found])
1007                 APR_INCLUDE="$APR_INCLUDE `$APU_CONFIG --includes`"
1008                 APR_LIBS="$APR_LIBS `$APU_CONFIG --link-ld --libs`"
1009         else
1010                 AC_MSG_RESULT([not found])
1011         fi
1012         
1013         dnl -----------------------------------------
1014         dnl NEON. Required by subversion (devel)
1015         dnl------------------------------------------
1017         dnl Check for neon. It is required by subversion libs, but for
1018         dnl for some strange reason it's not in it's dependencies.
1019         dnl subversion plugin will be disabled if neon (devel) is not
1020         dnl installed, even if subversion (devel) is installed.
1022         NEON_CONFIGS="neon-config"
1023         AC_ARG_WITH(neon-config,
1024         [[  --with-neon-config=FILE    Use the given path to neon-config when determining
1025                                                                 Neon configuration; defaults to "neon-config"]],
1026         [
1027                 if test "$withval" != "yes" -a "$withval" != ""; then
1028                         NEON_CONFIGS=$withval
1029                 fi
1030         ])
1031         AC_MSG_CHECKING([for Neon])
1032         NEON_CONFIG=""
1033         for VALUE in $NEON_CONFIGS ; do
1034                         if $VALUE --cflags > /dev/null 2>&1 ; then
1035                                         NEON_CONFIG=$VALUE
1036                                         break
1037                         fi
1038         done
1039         if test $NEON_CONFIG ; then
1040                 AC_MSG_RESULT([found])
1041         else
1042                 AC_MSG_RESULT([not found])
1043                 SVN_INCLUDE=""
1044                 SVN_LIB=""
1045         fi
1048 dnl ------------------------------------------
1049 dnl Finally prepare subversion build flags
1050 dnl ------------------------------------------
1052 if test -n "$SVN_INCLUDE" ; then
1053         SVN_INCLUDE="-I$SVN_INCLUDE $APR_INCLUDE"
1054         if test x != "x$SVN_LIB" ; then
1055             SVN_LIB="-L$SVN_LIB $APR_LIBS -lsvn_client-1 -lsvn_subr-1"
1056         else
1057             SVN_LIB="$APR_LIBS -lsvn_client-1 -lsvn_subr-1"
1058         fi
1059         SVN_CFLAGS="$APR_CFLAGS"
1062 AM_CONDITIONAL(BUILD_SVN, [test -n "$SVN_INCLUDE"])
1063 AC_SUBST(SVN_INCLUDE)
1064 AC_SUBST(SVN_LIB)
1065 AC_SUBST(SVN_CFLAGS)
1067 dnl --------- help outputs -----------
1068 dnl manuals/C/Makefile
1069 dnl manuals/C/anjuta-tutorial/Makefile
1070 dnl manuals/C/anjuta-advanced-tutorial/Makefile
1071 dnl manuals/C/anjuta-faqs/Makefile
1072 dnl manuals/C/anjuta-manual/Makefile
1073 dnl manuals/de/Makefile
1074 dnl manuals/de/anjuta-tutorial/Makefile
1075 dnl manuals/ja/Makefile
1076 dnl manuals/ja/anjuta-faqs/Makefile
1077 dnl manuals/ja/anjuta-manual/Makefile
1079 AC_OUTPUT([
1080 Makefile
1081 po/Makefile.in
1082 tagmanager/Makefile
1083 tagmanager/include/Makefile
1084 global-tags/Makefile
1085 libanjuta/Makefile
1086 libanjuta/libanjuta-1.0.pc
1087 libanjuta/interfaces/Makefile
1088 src/Makefile
1089 pixmaps/Makefile
1090 data/Makefile
1091 data/welcome.txt
1092 doc/anjuta.1
1093 doc/anjuta_launcher.1
1094 doc/Makefile
1095 scripts/Makefile
1096 scripts/anjuta_import.sh
1097 launcher/Makefile
1098 plugins/Makefile
1099 plugins/sample1/Makefile
1100 plugins/gtodo/Makefile
1101 plugins/class-gen/Makefile
1102 plugins/class-gen/templates/Makefile
1103 plugins/patch/Makefile
1104 plugins/editor/Makefile
1105 plugins/editor/scintilla/Makefile
1106 plugins/editor/scintilla/include/Makefile
1107 plugins/editor/properties/Makefile
1108 plugins/document-manager/Makefile
1109 plugins/document-manager/images/Makefile
1110 plugins/search/Makefile
1111 plugins/message-view/Makefile
1112 plugins/gdb/Makefile
1113 plugins/gdb/images/Makefile
1114 plugins/debug-manager/Makefile
1115 plugins/debug-manager/images/Makefile
1116 plugins/devhelp/Makefile
1117 plugins/glade/Makefile
1118 plugins/file-manager/Makefile
1119 plugins/file-loader/Makefile
1120 plugins/file-wizard/Makefile
1121 plugins/terminal/Makefile
1122 plugins/build-basic-autotools/Makefile
1123 plugins/profiler/Makefile
1124 plugins/project-manager/Makefile
1125 plugins/symbol-browser/Makefile
1126 plugins/symbol-browser/images/Makefile
1127 plugins/symbol-db/Makefile
1128 plugins/symbol-db/test/Makefile
1129 plugins/cvs-plugin/Makefile
1130 plugins/project-wizard/Makefile
1131 plugins/macro/Makefile
1132 plugins/subversion/Makefile
1133 plugins/git/Makefile
1134 plugins/sourceview/Makefile
1135 plugins/tools/Makefile
1136 plugins/tools/scripts/Makefile
1137 plugins/class-inheritance/Makefile
1138 plugins/valgrind/Makefile
1139 plugins/language-manager/Makefile
1140 plugins/project-import/Makefile
1141 plugins/project-wizard/templates/Makefile
1142 plugins/project-wizard/templates/mkfile/Makefile
1143 plugins/project-wizard/templates/mkfile/src/Makefile
1144 plugins/project-wizard/templates/mkfile/po/Makefile
1145 plugins/project-wizard/templates/minimal/Makefile
1146 plugins/project-wizard/templates/terminal/Makefile
1147 plugins/project-wizard/templates/terminal/src/Makefile
1148 plugins/project-wizard/templates/terminal/po/Makefile
1149 plugins/project-wizard/templates/cpp/Makefile
1150 plugins/project-wizard/templates/cpp/src/Makefile
1151 plugins/project-wizard/templates/cpp/po/Makefile
1152 plugins/project-wizard/templates/gtk/Makefile
1153 plugins/project-wizard/templates/gtk/src/Makefile
1154 plugins/project-wizard/templates/gtk/po/Makefile
1155 plugins/project-wizard/templates/anjuta-plugin/Makefile
1156 plugins/project-wizard/templates/anjuta-plugin/src/Makefile
1157 plugins/project-wizard/templates/anjuta-plugin/po/Makefile
1158 plugins/project-wizard/templates/gnome/Makefile
1159 plugins/project-wizard/templates/gnome/src/Makefile
1160 plugins/project-wizard/templates/gnome/po/Makefile
1161 plugins/project-wizard/templates/gtkmm/Makefile
1162 plugins/project-wizard/templates/gtkmm/src/Makefile
1163 plugins/project-wizard/templates/gtkmm/po/Makefile
1164 plugins/project-wizard/templates/gcj/Makefile
1165 plugins/project-wizard/templates/gcj/src/Makefile
1166 plugins/project-wizard/templates/java/Makefile
1167 plugins/project-wizard/templates/java/src/Makefile
1168 plugins/project-wizard/templates/java/po/Makefile
1169 plugins/project-wizard/templates/python/Makefile
1170 plugins/project-wizard/templates/python/src/Makefile
1171 plugins/project-wizard/templates/python/po/Makefile
1172 plugins/project-wizard/templates/wxwin/Makefile
1173 plugins/project-wizard/templates/wxwin/src/Makefile
1174 plugins/project-wizard/templates/wxwin/po/Makefile
1175 plugins/project-wizard/templates/xlib/Makefile
1176 plugins/project-wizard/templates/xlib/src/Makefile
1177 plugins/project-wizard/templates/xlib/po/Makefile
1178 plugins/project-wizard/templates/xlib-dock/Makefile
1179 plugins/project-wizard/templates/xlib-dock/src/Makefile
1180 plugins/project-wizard/templates/xlib-dock/po/Makefile
1181 plugins/project-wizard/templates/sdl/Makefile
1182 plugins/project-wizard/templates/sdl/src/Makefile
1183 plugins/project-wizard/templates/sdl/po/Makefile
1184 plugins/language-support-cpp-java/Makefile
1185 plugins/run-program/Makefile
1186 anjuta.desktop.in
1187 manuals/Makefile
1188 manuals/reference/Makefile
1189 manuals/reference/libanjuta/Makefile
1190 manuals/reference/libanjuta/version.xml
1191 manuals/anjuta-manual/Makefile
1192 manuals/anjuta-faqs/Makefile
1193 mime/Makefile
1195 echo " "
1196 echo "-------------------------------------------------------------------"
1197 echo "Conditionally built plugins:"
1198 echo "-------------------------------------------------------------------"
1199 if [ test -n "$SVN_INCLUDE" ]; then
1200         echo "Building subversion plugin: ............................YES"
1201 else
1202         echo "Building subversion plugin: ............................NO"
1203                 echo "        Requires apr (>= 0.9.4); http://subversion.org"
1204                 echo "        Requires apr-util (>= 0.9.4); http://subversion.org"
1205                 echo "        Requires neon (>= 0.24.5); http://subversion.org"
1206                 echo "        Requires subversion (>= 1.0.2); http://subversion.org"
1209 if [ test x$libgladeui_found = xyes ]; then
1210        echo "Building glade plugin: .................................YES"
1211 else
1212        echo "Building glade plugin: .................................NO"
1213        echo "        Requires glade-3 (>= 3.0.2)"
1216 if [ test x$devhelp_enabled = xyes ]; then
1217        echo "Building devhelp plugin: ...............................YES"
1218 else
1219        echo "Building devhelp plugin: ...............................NO"
1220        echo "        Requires devhelp"
1223 if [ test x$libgraphviz_found = xyes ]; then
1224         echo "Building class inheritance plugin: .....................YES"
1225         echo "Building performance profiler with function call chart: YES"
1226 else
1227         echo "Building class inheritance plugin: .....................NO"
1228         echo "        Requires graphviz (>= 2.6.0); http://graphviz.org"
1229         echo "Building performance profiler with function call chart: NO"
1230          echo "        Requires graphviz (>= 2.6.0); http://graphviz.org"
1233 if [ test x$valgrind = xyes ]; then
1234         echo "Building Valgrind debugger plugin: .....................YES"
1235 else
1236         echo "Building Valgrind debugger plugin: .....................NO"
1237         echo "          Requires binutils-dev"
1240 if [ test x$sourceview = xyes ]; then
1241         echo "Building GtkSourceView based editor: ...................YES"
1242 else
1243         echo "Building GtkSourceView based editor: ...................NO"
1246 if [ test x$scintilla = xyes ]; then
1247         echo "Building Scintilla based editor: .......................YES"
1248 else
1249         echo "Building Scintilla based editor: .......................NO"
1250         echo "         Requires libgnomeprintui2.2-dev"
1253 if [ test x$symboldb = xyes ]; then
1254         echo "Building new (unstable) Symbol-db plugin: ..............YES"
1255 else
1256         echo "Building new (unstable) Symbol-db plugin: .......,,.....NO"
1258 echo "-------------------------------------------------------------------"
1259 echo "AM_CFLAGS = $AM_CFLAGS"
1260 echo "AM_CXXFLAGS = $AM_CXXFLAGS"