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