1 dnl Process this file with autoconf to produce a configure script.
5 m4_define(anjuta_major_version, 2)
6 m4_define(anjuta_minor_version, 1)
7 m4_define(anjuta_micro_version, 3)
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)
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
29 LIBGLADE_REQUIRED=2.3.0
31 GNOME_CANVAS_REQUIRED=2.12.0
32 GNOME_UI_REQUIRED=2.12.0
33 GNOME_PRINT_REQUIRED=2.12.0
34 GNOME_PRINT_UI_REQUIRED=2.12.0
35 GNOME_VFS_REQUIRED=2.10.0
38 VTE_NEW_REQUIRED=0.13.1
39 LIBXML_REQUIRED=2.4.23
42 LIBDEVHELP_REQUIRED=0.13
44 GNOMEBUILD_REQUIRED=0.1.4
45 GLADEUI_REQUIRED=3.0.2
46 LIBGRAPHVIZ_REQUIRED=1.0
48 SUBVERSION_REQUIRED=1.0.2
49 GTKSOURCEVIEW_REQUIRED=1.4.0
50 GTKSOURCEVIEW_GNOME_REQUIRED=2.14
51 GTKSOURCEVIEW_GTK_REQUIRED=2.10
52 BINUTILS_REQUIRED=2.15.92
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(PCRE_REQUIRED)
76 AC_SUBST(LIBDEVHELP_REQUIRED)
77 AC_SUBST(GDL_REQUIRED)
78 AC_SUBST(GNOMEBUILD_REQUIRED)
79 AC_SUBST(GLADEUI_REQUIRED)
80 AC_SUBST(GLADEUI_SVN_REQUIRED)
81 AC_SUBST(LIBGRAPHVIZ_REQUIRED)
82 AC_SUBST(NEON_REQUIRED)
83 AC_SUBST(SUBVERSION_REQUIRED)
84 AC_SUBST(GTKSOURCEVIEW_REQUIRED)
85 AC_SUBST(GTKSOURCEVIEW_GNOME_REQUIRED)
86 AC_SUBST(GTKSOURCEVIEW_GTK_REQUIRED)
87 AC_SUBST(BINUTILS_REQUIRED)
88 AC_SUBST(LIBWNCK_REQUIRED)
90 dnl AC_SUBST(LIBGTODO_REQUIRED)
92 AM_INIT_AUTOMAKE([1.9 dist-bzip2 no-dist-gzip])
93 AC_CONFIG_HEADERS(config.h)
98 CFLAGS_WARNINGS="-Wall -Wmissing-prototypes -Wmissing-declarations -Wparentheses -Wpointer-arith"
99 WCXXFLAGS_WARNINGS="-Wall -Wparentheses -Wpointer-arith"
101 if test "x$GCC" = x; then
106 AM_CFLAGS="$AM_CFLAGS $CFLAGS_WARNINGS"
107 AM_CXXFLAGS="$AM_CXXFLAGS $CXXFLAGS_WARNINGS"
109 dnl Enable debugging mode
111 [ --enable-debug Enable debug messages],
112 AM_CFLAGS="$AM_CFLAGS -DDEBUG"
113 AM_CXXFLAGS="$AM_CXXFLAGS -DDEBUG")
115 AC_SUBST(AM_CXXFLAGS)
117 ANJUTA_LDFLAGS="-no-undefined"
118 ANJUTA_PLUGIN_LDFLAGS="-module -avoid-version -no-undefined"
119 AC_SUBST(ANJUTA_LDFLAG)
120 AC_SUBST(ANJUTA_PLUGIN_LDFLAGS)
122 dnl Disable deprecated APIs
123 AC_ARG_ENABLE(deprecated,
124 [ --disable-deprecated Disable deprecated APIs],
125 [ if test "$enableval" = "no"; then
126 DEPRECATED_FLAGS="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED"
128 [ DEPRECATED_FLAGS="" ])
129 AC_SUBST(DEPRECATED_FLAGS)
131 dnl Enable versioned user preferences directory
132 AC_ARG_WITH(pref-suffix,
133 [ --with-pref-suffix=VALUE Suffix to add to user preferences dir.],
134 PREF_SUFFIX="$withval")
136 AC_SUBST(PREF_SUFFIX)
137 AC_DEFINE_UNQUOTED(PREF_SUFFIX,
139 [Suffix to add to preferences directory])
141 #Check for C Compiler
146 #Check for C++ Compiler
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)
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)
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)
196 PKG_CHECK_MODULES(GLADE, libglade-2.0 >= $LIBGLADE_REQUIRED)
197 AC_SUBST(GLADE_CFLAGS)
200 PKG_CHECK_MODULES(GNOME, libgnome-2.0 >= $GNOME_REQUIRED)
201 AC_SUBST(GNOME_CFLAGS)
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_PRINT, libgnomeprint-2.2 >= $GNOME_PRINT_REQUIRED)
213 AC_SUBST(GNOME_PRINT_CFLAGS)
214 AC_SUBST(GNOME_PRINT_LIBS)
216 PKG_CHECK_MODULES(GNOME_PRINT_UI, libgnomeprintui-2.2 >= $GNOME_PRINT_UI_REQUIRED)
217 AC_SUBST(GNOME_PRINT_UI_CFLAGS)
218 AC_SUBST(GNOME_PRINT_UI_LIBS)
220 PKG_CHECK_MODULES(GNOME_VFS, gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED)
221 AC_SUBST(GNOME_VFS_CFLAGS)
222 AC_SUBST(GNOME_VFS_LIBS)
224 PKG_CHECK_MODULES(GNOME_VFS_MODULE, gnome-vfs-module-2.0 >= $GNOME_VFS_REQUIRED)
225 AC_SUBST(GNOME_VFS_MODULE_CFLAGS)
226 AC_SUBST(GNOME_VFS_MODULE_LIBS)
228 PKG_CHECK_MODULES(GCONF, gconf-2.0 >= $GCONF_REQUIRED)
229 AC_SUBST(GCONF_CFLAGS)
232 PKG_CHECK_MODULES(VTE, vte >= $VTE_REQUIRED)
236 PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED)
237 AC_SUBST(LIBXML_CFLAGS)
238 AC_SUBST(LIBXML_LIBS)
240 PKG_CHECK_MODULES(PANGO, pango >= $PANGO_REQUIRED)
241 AC_SUBST(PANGO_CFLAGS)
244 PKG_CHECK_MODULES(GDL, gdl-1.0 >= $GDL_REQUIRED gdl-gnome-1.0 >= $GDL_REQUIRED)
248 PKG_CHECK_MODULES(LIBXSLT, libxslt)
249 AC_SUBST(LIBXSLT_CFLAGS)
250 AC_SUBST(LIBXSLT_LIBS)
252 dnl Check for autogen
253 dnl -----------------
254 AC_PATH_PROG(AUTOGEN_PATH, autogen,no)
255 if test x$AUTOGEN_PATH = xno; then
256 AC_MSG_ERROR([Couldn't find autogen, please install the autogen package. You can get it from http://autogen.sourceforge.net/])
259 dnl Check for Devhelp
260 dnl -----------------
262 AC_ARG_ENABLE(plugin-devhelp,
263 [ --disable-plugin-devhelp Disable devhelp plugin support in Anjuta.],
264 [ if test "$enableval" = "no"; then
265 user_disabled_devhelp=1
267 [ user_disabled_devhelp=0 ] )
269 AC_MSG_CHECKING(if devhelp plugin is disabled)
270 if test "$user_disabled_devhelp" = 1; then
276 PKG_CHECK_MODULES(PLUGIN_DEVHELP,
277 [libdevhelp-1.0 >= $LIBDEVHELP_REQUIRED],
282 AC_MSG_RESULT([version >= 0.11 not found])
286 if test x$devhelp_old = xyes; then
287 PKG_CHECK_MODULES(PLUGIN_DEVHELP, [libdevhelp-1.0 >= 0.9], [devhelp_enabled=yes], [devhelp_enabled=no])
288 if test x$devhelp_enabled = xyes; then
289 AC_DEFINE(HAVE_OLD_DEVHELP, 1, [If old devhelp (>= 0.9 < 0.11) is installed])
292 AC_SUBST(PLUGIN_DEVHELP_CFLAGS)
293 AC_SUBST(PLUGIN_DEVHELP_LIBS)
296 if test x$devhelp_enabled = xyes; then
297 GECKO_HOME=`$PKGCONFIG_CONFIG --variable=gecko_home libdevhelp-1.0`
298 if test x$GECKO_HOME != x; then
299 ANJUTA_LDFLAGS="$ANJUTA_LDFLAGS -R$GECKO_HOME"
302 AC_SUBST(ANJUTA_LDFLAGS)
304 AM_CONDITIONAL(HAVE_PLUGIN_DEVHELP, [test x$devhelp_enabled = xyes])
307 dnl -----------------
308 dnl PKG_CHECK_MODULES(PLUGIN_GTODO, libgtodo-1.0 >= $LIBGTODO_REQUIRED)
309 dnl AC_SUBST(PLUGIN_GTODO_CFLAGS)
310 dnl AC_SUBST(PLUGIN_GTODO_LIBS)
312 dnl Check for Gnome Build
313 dnl ---------------------
315 PKG_CHECK_MODULES(PLUGIN_GNOMEBUILD, gnome-build-1.0 >= $GNOMEBUILD_REQUIRED)
316 AC_SUBST(PLUGIN_GNOMEBUILD_CFLAGS)
317 AC_SUBST(PLUGIN_GNOMEBUILD_LIBS)
320 dnl ---------------------
322 AC_ARG_ENABLE(plugin-glade,
323 [ --disable-plugin-glade Disable glade plugin support in Anjuta.],
324 [ if test "$enableval" = "no"; then
325 user_disabled_glade=1
327 [ user_disabled_glade=0 ] )
329 AC_MSG_CHECKING(if glade plugin is disabled)
330 if test "$user_disabled_glade" = 1; then
332 libgladeui_found="no"
335 AC_PATH_PROG(PKG_PATH, pkg-config, no)
337 PKG_CHECK_MODULES(PLUGIN_GLADE, gladeui-1.0,
339 libgladeui_found="yes"
340 gladeui_version=`$PKG_PATH --modversion gladeui-1.0 | sed -e 's,\.,,g'`
342 libgladeui_found="no"
344 if test x$libgladeui_found = xno; then
345 PKG_CHECK_MODULES(PLUGIN_GLADE, [libgladeui-1.0 >= $GLADEUI_REQUIRED],
347 libgladeui_found="yes"
348 gladeui_version=`$PKG_PATH --modversion libgladeui-1.0 | sed -e 's,\.,,g'`
350 libgladeui_found="no"
353 AC_DEFINE_UNQUOTED(GLADEUI_VERSION, [$gladeui_version], [GLADEUI version])
354 AC_SUBST(GLADEUI_VERSION)
355 AC_SUBST(PLUGIN_GLADE_CFLAGS)
356 AC_SUBST(PLUGIN_GLADE_LIBS)
359 AM_CONDITIONAL(HAVE_PLUGIN_GLADE, [test x$libgladeui_found = xyes])
361 dnl Check for graphviz (class inheritance and profiler plugins)
362 dnl --------------------------------------------------------------------------
363 dnl FIXME: For some strange reason graphviz-devel rpm install the *.pc files
364 dnl in /usr/lib/graphviz/pkgconfig, instead of usual /usr/lib/pkgconfig. This
365 dnl makes pkgconfig check fail if we don't add the above path in
366 dnl PKG_CONFIG_PATH. We have added both /usr/lib/graphviz/pkgconfig and
367 dnl /usr/local/lib/pkgconfig paths. If graphviz is installed in other prefix
368 dnl (other than /usr or /usr/local or the current installation prefix),
369 dnl following pkgconfig check will fail.
370 dnl --------------------------------------------------------------------------
371 AC_ARG_ENABLE(graphviz,
372 [ --disable-graphviz Disable GraphViz support in Anjuta],
373 [ if test "$enableval" = "no"; then
374 user_disabled_graphviz=1
376 [ user_disabled_graphviz=0 ])
378 AC_MSG_CHECKING(if GraphViz support is disabled)
379 if test "$user_disabled_graphviz" = 1; then
381 libgraphviz_found="no"
385 dnl Set pkgconfig path
386 ANJUTA_PKG_CONFIG_PATH_SAVE="${PKG_CONFIG_PATH}"
387 PKG_CONFIG_PATH="/usr/lib/graphviz/pkgconfig:$PKG_CONFIG_PATH"
388 PKG_CONFIG_PATH="/usr/local/lib/graphviz/pkgconfig:$PKG_CONFIG_PATH"
389 PKG_CONFIG_PATH="/usr/lib64/graphviz/pkgconfig:$PKG_CONFIG_PATH"
390 PKG_CONFIG_PATH="/usr/local/lib64/graphviz/pkgconfig:$PKG_CONFIG_PATH"
392 anjuta_save_prefix="$prefix"
393 test "x$prefix" = xNONE && prefix=$ac_default_prefix
394 graphviz_pkgconfig=`eval echo ${libdir}/graphviz/pkgconfig`
395 PKG_CONFIG_PATH="$graphviz_pkgconfig:$PKG_CONFIG_PATH"
396 prefix="$anjuta_save_prefix"
398 export PKG_CONFIG_PATH
399 PKG_CHECK_MODULES(GRAPHVIZ,
400 [libgvc >= $LIBGRAPHVIZ_REQUIRED libgraph >= $LIBGRAPHVIZ_REQUIRED],
401 [libgraphviz_found="yes"],
402 [libgraphviz_found="no"])
403 AC_SUBST(GRAPHVIZ_CFLAGS)
404 AC_SUBST(GRAPHVIZ_LIBS)
406 dnl Restore pkgconfig path
407 PKG_CONFIG_PATH="${ANJUTA_PKG_CONFIG_PATH_SAVE}"
408 export PKG_CONFIG_PATH
411 AM_CONDITIONAL(HAVE_GRAPHVIZ, [test x$libgraphviz_found = xyes])
413 dnl Define HAVE_GRAPHVIZ to disable Function Call Chart in the Profiler if
414 dnl Graphviz isn't on the system
415 if test "$libgraphviz_found" = yes; then
416 AC_DEFINE(HAVE_GRAPHVIZ, [], [Define if we have GraphViz >= 2.6.0])
419 dnl Build gtksourceview plugin only on gnome 2.14 and gtk 2.10
420 dnl -------------------------------------------------------------
422 AC_ARG_ENABLE(plugin-sourceview,
423 [ --disable-plugin-sourceview Disable gtksourceview based editor in Anjuta],
424 [ if test "$enableval" = "no"; then
425 user_disabled_sourceview=1
427 [ user_disabled_sourceview=0 ])
429 AC_MSG_CHECKING(if sourceview plugin is disabled)
430 if test "$user_disabled_sourceview" = 1; then
436 PKG_CHECK_MODULES(PLUGIN_SOURCEVIEW,
437 [libgnome-2.0 >= $GTKSOURCEVIEW_GNOME_REQUIRED,
438 gtk+-2.0 >= $GTKSOURCEVIEW_GTK_REQUIRED,
439 gtksourceview-1.0 >= $GTKSOURCEVIEW_REQUIRED],
442 AC_SUBST(PLUGIN_SOURCEVIEW_CFLAGS)
443 AC_SUBST(PLUGIN_SOURCEVIEW_LIBS)
446 AM_CONDITIONAL(HAVE_PLUGIN_SOURCEVIEW, [test x$sourceview = xyes])
449 dnl -------------------------------------------------------------
451 AC_ARG_ENABLE(plugin-scintilla,
452 [ --disable-plugin-scintilla Disable Scintilla based editor in Anjuta],
453 [ if test "$enableval" = "no"; then
454 user_disabled_scintilla=1
456 [ user_disabled_scintilla=0 ])
458 AC_MSG_CHECKING(if scintilla plugin is disabled)
459 if test "$user_disabled_scintilla" = 1; then
466 AM_CONDITIONAL(HAVE_PLUGIN_SCINTILLA, [test x$scintilla = xyes])
470 dnl -------------------------------------------------------------
472 AC_ARG_ENABLE(plugin-valgrind,
473 [ --disable-plugin-valgrind Disable Valgrind plugin],
474 [ if test "$enableval" = "no"; then
475 user_disabled_valgrind=1
477 [ user_disabled_valgrind=0 ])
479 AC_MSG_CHECKING(if valgrind plugin is disabled)
480 if test "$user_disabled_valgrind" = 1; then
488 AC_CHECK_LIB(bfd, bfd_get_error, [PLUGIN_VALGRIND_LIBS="-Wl,-Bstatic -lbfd -liberty -Wl,-Bdynamic"],
492 AC_SUBST(PLUGIN_VALGRIND_LIBS)
493 AM_CONDITIONAL(HAVE_PLUGIN_VALGRIND, [test x$valgrind = xyes])
498 dnl we need gconftool-2 in order to install the schema
499 AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
501 if test "x$GCONFTOOL" = "xno"; then
502 AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
510 dnl check for bfd_get_section_size_before_reloc() in libbfd
511 AC_MSG_CHECKING(for bfd_get_section_size_before_reloc)
517 bfd_get_section_size_before_reloc (section);
520 AC_DEFINE(HAVE_BFD_GET_SECTION_SIZE_BEFORE_RELOC, [], [Define if libbfd
521 contains the function bfd_get_section_size_before_reloc])
529 dnl Setup Anjuta Library flags
530 dnl --------------------------
531 LIBANJUTA_CFLAGS='$(GNOME_UI_CFLAGS) $(GLADE_CFLAGS) -I$(top_srcdir) -DPACKAGE_PIXMAPS_DIR=\""$(datadir)/pixmaps/$(PACKAGE)\"" -DPACKAGE_DATA_DIR=\""$(datadir)/$(PACKAGE)"\"'
532 LIBANJUTA_LIBS='$(top_builddir)/libanjuta/libanjuta.la'
533 AC_SUBST(LIBANJUTA_CFLAGS)
534 AC_SUBST(LIBANJUTA_LIBS)
536 dnl Setup Plugin directories
537 dnl ------------------------
538 anjuta_plugin_dir='$(libdir)/anjuta'
539 anjuta_data_dir='$(datadir)/anjuta'
540 anjuta_ui_dir='$(datadir)/anjuta/ui'
541 anjuta_glade_dir='$(datadir)/anjuta/glade'
542 anjuta_image_dir='$(datadir)/pixmaps/anjuta'
543 AC_SUBST(anjuta_plugin_dir)
544 AC_SUBST(anjuta_data_dir)
545 AC_SUBST(anjuta_ui_dir)
546 AC_SUBST(anjuta_glade_dir)
547 AC_SUBST(anjuta_image_dir)
549 dnl ***************************************************************************
550 dnl Check for old vte version
551 dnl ***************************************************************************
552 PKG_CHECK_MODULES(VTE, vte >= $VTE_NEW_REQUIRED, OLD_VTE=0, OLD_VTE=1)
554 AC_DEFINE_UNQUOTED(OLD_VTE, $OLD_VTE, [Old version of vte])
556 dnl ***************************************************************************
557 dnl Check for marshal and enum generators
558 dnl ***************************************************************************
559 GLIB_GENMARSHAL="`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`"
560 AC_SUBST(GLIB_GENMARSHAL)
561 GLIB_MKENUMS="`$PKG_CONFIG --variable=glib_mkenums glib-2.0`"
562 AC_SUBST(GLIB_MKENUMS)
564 dnl ***************************************************************************
565 dnl Internatinalization
566 dnl ***************************************************************************
567 GETTEXT_PACKAGE=anjuta
568 AC_SUBST(GETTEXT_PACKAGE)
569 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
571 IT_PROG_INTLTOOL([0.35.0])
573 dnl ***************************************************************************
574 dnl Check for gtk-doc.
575 dnl ***************************************************************************
578 dnl ***************************************************************************
579 dnl Check for Gnome XML [Is this still required?]
580 dnl ***************************************************************************
583 dnl ***************************************************************************
584 dnl Check for ScrollKeeper [No documentation for now]
585 dnl ***************************************************************************
586 dnl AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no)
587 dnl if test x$SCROLLKEEPER_CONFIG = xno; then
588 dnl AC_MSG_ERROR(Couldn't find scrollkeeper-config, please install the scrollkeeper package. You can get it from http://scrollkeeper.sourceforge.net/)
590 dnl SCROLLKEEPER_REQUIRED=0.1.4
591 dnl AC_SUBST(SCROLLKEEPER_REQUIRED)
593 dnl ***************************************************************************
594 dnl Checking for scrollkeeper version [No documentation for now]
595 dnl ***************************************************************************
596 dnl AC_MSG_CHECKING(for scrollkeeper version number)
597 dnl if scrollkeeper-config --version > /dev/null 2>&1; then
598 dnl version=`scrollkeeper-config --version`; \
599 dnl vers=`echo $version | awk 'BEGIN { FS = "."; } { print $1 * 1000 + $2;}'`; \
600 dnl AC_MSG_RESULT(found $version)
601 dnl SCROLLKEEPER_VERSION_NUM=$vers
603 dnl AC_MSG_ERROR(Did not find scrollkeeper installed)
605 dnl AC_SUBST(SCROLLKEEPER_VERSION_NUM)
607 dnl ***************************************************************************
609 dnl ***************************************************************************
611 AC_PATH_PROG(PCRE_CONFIG, pcre-config,no)
612 if test x$PCRE_CONFIG = xno; then
613 AC_MSG_ERROR(Please install the PCRE package from http://www.pcre.org/)
615 PCRE_CFLAGS=`pcre-config --cflags`
616 PCRE_LIBS=`pcre-config --libs`
618 AC_SUBST(PCRE_CFLAGS)
620 dnl ***************************************************************************
621 dnl Tagmanager checks.
622 dnl ***************************************************************************
624 dnl Define convenience macros
625 dnl -------------------------
626 dnl CHECK_HEADER_DEFINE(LABEL, HEADER [,ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ] ])
627 AC_DEFUN([CHECK_HEADER_DEFINE],
629 AC_MSG_CHECKING("if $1 is defined in $2")
643 dnl Checks for header files.
644 AC_CHECK_HEADERS(dirent.h fcntl.h fnmatch.h stat.h stdlib.h string.h stdint.h)
645 AC_CHECK_HEADERS(time.h types.h unistd.h)
646 AC_CHECK_HEADERS(sys/dir.h sys/stat.h sys/times.h sys/types.h)
648 dnl Checks for typedefs, structures, and compiler characteristics.
650 dnl Disable cygwin check until someone fixes that stupid autoconf warnings.
661 AC_MSG_CHECKING("for fpos_t")
662 AC_EGREP_HEADER(fpos_t, stdio.h, AC_MSG_RESULT(yes),
665 AC_DEFINE(fpos_t, long, [fpos_t is type long])
668 AC_MSG_CHECKING("for clock_t")
669 AC_EGREP_HEADER(clock_t, time.h, AC_MSG_RESULT(yes),
672 AC_DEFINE(clock_t, long, [clock_t is type long])
675 CHECK_HEADER_DEFINE(L_tmpnam, stdio.h,, AC_DEFINE(L_tmpnam, 20, [L_tmpname is 20]))
677 CHECK_HEADER_DEFINE(INT_MAX, limits.h,,
678 CHECK_HEADER_DEFINE(MAXINT, limits.h,
679 AC_DEFINE(INT_MAX, MAXINT, [Maximum int size]), AC_DEFINE(INT_MAX, 32767, [Maximum int size])))
681 AC_MSG_CHECKING(if struct stat contains st_ino)
682 AC_TRY_COMPILE([#include <sys/stat.h>], [
687 ], have_st_ino=yes, have_st_ino=no)
688 AC_MSG_RESULT($have_st_ino)
689 if test yes = "$have_st_ino"; then
690 AC_DEFINE(HAVE_STAT_ST_INO,,[Have stat st_ino])
694 dnl Check for function forkpty in libutil
695 AC_CHECK_LIB(util, forkpty)
697 dnl Checks for library functions.
698 AC_CHECK_FUNCS(fnmatch)
699 AC_CHECK_FUNCS(strstr)
700 AC_CHECK_FUNCS(stricmp)
701 AC_CHECK_FUNCS(strnicmp)
702 AC_CHECK_FUNCS(getline)
704 AC_CHECK_FUNCS(fgetpos, have_fgetpos=yes)
706 dnl SEEK_SET should be in stdio.h, but may be in unistd.h on SunOS 4.1.x
707 if test "$have_fgetpos" != yes ; then
708 CHECK_HEADER_DEFINE(SEEK_SET, stdio.h,,
709 CHECK_HEADER_DEFINE(SEEK_SET, unistd.h,,
710 AC_DEFINE(SEEK_SET, 0, [Seek set 0])))
713 AC_CHECK_FUNCS(mkstemp, have_mkstemp=yes)
714 if test "$have_mkstemp" != yes ; then
715 AC_CHECK_FUNCS(chmod)
716 if test "$tmpdir_specified" = yes ; then
717 AC_MSG_RESULT(use of tmpnam overrides temporary directory selection)
720 AC_MSG_CHECKING(directory to use for temporary files)
721 if test -z "$enable_tmpdir" -o "$enable_tmpdir" = no -o "$enable_tmpdir" = yes ;
723 else tmpdir="$enable_tmpdir"
725 if test -d $tmpdir ; then
726 AC_MSG_RESULT($tmpdir)
727 AC_DEFINE_UNQUOTED(TMPDIR, "$tmpdir", [Directory for temporary files])
729 AC_MSG_WARN($tmpdir does not exist)
733 AC_CHECK_FUNCS(strerror opendir)
734 AC_CHECK_FUNCS(clock times, break)
735 AC_CHECK_FUNCS(remove, have_remove=yes,
736 CHECK_HEADER_DEFINE(remove, unistd.h,, AC_DEFINE(remove, unlink, [Remove is unlink])))
738 AC_CHECK_FUNCS(truncate, have_truncate=yes)
739 dnl === Cannot nest AC_CHECK_FUNCS() calls
740 if test "$have_truncate" != yes ; then
741 AC_CHECK_FUNCS(ftruncate, have_ftruncate=yes)
742 if test "$have_ftruncate" != yes ; then
743 AC_CHECK_FUNCS(chsize)
747 AC_CHECK_FUNCS(setenv, have_setenv=yes)
748 dnl === Cannot nest AC_CHECK_FUNCS() calls
749 if test "$have_setenv" != yes ; then
750 AC_CHECK_FUNCS(putenv, have_putenv=yes)
751 if test "$have_putenv" = yes ; then
752 AC_EGREP_HEADER(putenv, stdlib.h, have_putenv_prototype=yes)
753 if test "$have_putenv_prototype" = yes ; then
754 AC_MSG_CHECKING("putenv prototype")
755 AC_EGREP_HEADER([[^A-Za-zo-9_]putenv[ ]*\(.*const.*\)[ ]*;],
756 stdlib.h, AC_MSG_RESULT(correct),
758 AC_MSG_RESULT(no const)
759 AC_DEFINE(NON_CONST_PUTENV_PROTOTYPE,,[putenv has non constant prototype])
766 dnl if test yes = "$CYGWIN"; then with_posix_regex=no; fi
767 if test no != "$with_posix_regex"; then
768 AC_CHECK_FUNCS(regcomp)
769 AC_MSG_CHECKING(if regcomp works)
771 #include <sys/types.h>
775 exit (regcomp (&patbuf, "/hello/", 0) != 0);
776 }],regcomp_works=yes,regcomp_works=no,AC_DEFINE(CHECK_REGCOMP,,[Check regcomp]))
777 AC_MSG_RESULT($regcomp_works)
778 if test yes != "$regcomp_works"; then
779 AC_DEFINE(REGCOMP_BROKEN,,[Regcomp is broken])
783 dnl -----------------------------
784 dnl Checks for FreeBSD Build
785 dnl -----------------------------
786 AC_MSG_CHECKING(if building on FreeBSD)
788 if test `uname -s` = "FreeBSD" ; then
790 FREEBSD_BUILD=-DFREEBSD
791 AC_SUBST(FREEBSD_BUILD)
792 AC_PATH_PROG(GMAKE, gmake, no)
793 if test "x$GMAKE" = "xno"; then
794 AC_ERROR(You need gmake installed to build Anjuta!)
803 dnl Checks for missing prototypes
804 dnl -----------------------------
805 AC_CHECKING("for missing prototypes")
807 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))])
809 if test "$have_remove" = yes ; then
810 CHECK_PROTO(remove, stdio.h)
812 CHECK_PROTO(unlink, unistd.h)
814 CHECK_PROTO(malloc, stdlib.h)
815 CHECK_PROTO(getenv, stdlib.h)
816 CHECK_PROTO(stat, sys/stat.h)
817 CHECK_PROTO(lstat, sys/stat.h)
818 if test "$have_fgetpos" = yes ; then
819 CHECK_PROTO(fgetpos, stdio.h)
821 if test "$have_truncate" = yes ; then
822 CHECK_PROTO(truncate, unistd.h)
824 if test "$have_ftruncate" = yes ; then
825 CHECK_PROTO(ftruncate, unistd.h)
828 dnl **********************************************************
829 dnl check if we have svn libraries to build subversion plugin
830 dnl (stolen from kdevelop ;-)
831 dnl **********************************************************
833 AC_MSG_CHECKING(for Subversion svn-config)
834 AC_ARG_WITH(subversion-dir,
835 [ --with-subversion-dir=DIR where Subversion is installed ],
837 SVNCONFIG="$withval/bin/svn-config"
840 if test -z "$SVNCONFIG"; then
841 _SVNCONFIG="`svn-config --prefix 2> /dev/null`"
842 if test -n "$_SVNCONFIG"; then
843 SVNCONFIG="$_SVNCONFIG/bin/svn-config"
848 if test -x "$SVNCONFIG"; then
849 SVNLD="`$SVNCONFIG --ldflags 2> /dev/null`"
850 SVN_LIB="`$SVNCONFIG --libs --cflags 2> /dev/null` -lsvn_client-1 -lsvn_subr-1"
851 dnl ugly hack for subversion svn-config problems in 0.14.x, to be removed when svn-config is fixed
852 SVN_INCLUDE="`$SVNCONFIG --includes 2> /dev/null` -I$_SVNCONFIG/include/subversion-1/"
855 AC_MSG_RESULT(not found)
857 dnl just a fallback to debian's config so that it works for me :)
858 AC_ARG_WITH(svn-include,
859 [[ --with-svn-include=DIR Use the given path to the subversion headers.]],
861 if test "$withval" != "yes" -a "$withval" != ""; then
862 SVN_INCLUDES=$withval
865 if test -z "$SVN_INCLUDES"; then
866 SVN_INCLUDES="/usr/local/include /usr/include"
868 AC_MSG_CHECKING([for Subversion headers])
870 for VALUE in $SVN_INCLUDES ; do
871 if test -f $VALUE/subversion-1/svn_types.h ; then
872 SVN_INCLUDE=$VALUE/subversion-1
875 if test -f $VALUE/svn_types.h ; then
880 if test $SVN_INCLUDE ; then
881 AC_MSG_RESULT([found])
883 AC_MSG_RESULT([not found])
885 SVN_LIBS="/usr/local/lib /usr/lib"
887 [[ --with-svn-lib=DIR Use the given path to the subversion libraries.]],
889 if test "$withval" != "yes" -a "$withval" != ""; then
893 AC_MSG_CHECKING([for Subversion libraries])
895 for VALUE in $SVN_LIBS ; do
896 if ls $VALUE/libsvn_client-1.* 1>/dev/null 2>&1; then
901 if test $SVN_LIB ; then
902 AC_MSG_RESULT([found])
904 AC_MSG_RESULT([not found])
908 dnl ******************************************************************
909 dnl Check for extra libs required by subversion.
910 dnl FIXME: This should actually be done by subversion and not by us.
911 dnl ******************************************************************
913 AC_ARG_ENABLE(plugin-subversion,
914 [ --disable-plugin-subversion Disable subversion support in Anjuta.],
915 [ if test "$enableval" = "no"; then
916 user_disabled_subversion=1
918 [ user_disabled_subversion=0 ] )
920 AC_MSG_CHECKING(if subversion support is disabled)
921 if test "$user_disabled_subversion" = 1; then
929 if test -n "$SVN_INCLUDE" ; then
930 dnl ------------------------------------
931 dnl APR. Required by subversion (devel)
932 dnl ------------------------------------
934 APR_CONFIGS="apr-config /usr/local/apr/bin/apr-config/ apr-1-config "
935 AC_ARG_WITH(apr-config,
936 [[ --with-apr-config=FILE Use the given path to apr-config when determining
937 APR configuration; defaults to "apr-config"]],
939 if test "$withval" != "yes" -a "$withval" != ""; then
943 AC_MSG_CHECKING([for APR])
945 for VALUE in $APR_CONFIGS ; do
946 if $VALUE --cflags > /dev/null 2>&1 ; then
951 test $VALUE && APR_CONFIG=$VALUE
952 if test $APR_CONFIG ; then
953 AC_MSG_RESULT([found])
954 APR_CFLAGS="`$APR_CONFIG --cflags` `$APR_CONFIG --cppflags`"
955 APR_INCLUDE="`$APR_CONFIG --includes`"
956 APR_LIBS="`$APR_CONFIG --link-ld --libs`"
958 AC_MSG_RESULT([not found])
959 dnl AC_MSG_ERROR([APR is required. Try --with-apr-config.])
962 dnl -----------------------------------------
963 dnl APR util. Required by subversion (devel)
964 dnl------------------------------------------
966 APU_CONFIGS="apu-config /usr/local/apr/bin/apu-config apu-1-config"
967 AC_ARG_WITH(apu-config,
968 [[ --with-apu-config=FILE Use the given path to apu-config when determining
969 APR util configuration; defaults to "apu-config"]],
971 if test "$withval" != "yes" -a "$withval" != ""; then
975 AC_MSG_CHECKING([for APR util])
977 for VALUE in $APU_CONFIGS ; do
978 if $VALUE --includes > /dev/null 2>&1 ; then
983 if test $APU_CONFIG ; then
984 AC_MSG_RESULT([found])
985 APR_INCLUDE="$APR_INCLUDE `$APU_CONFIG --includes`"
986 APR_LIBS="$APR_LIBS `$APU_CONFIG --link-ld --libs`"
988 AC_MSG_RESULT([not found])
991 dnl -----------------------------------------
992 dnl NEON. Required by subversion (devel)
993 dnl------------------------------------------
995 dnl Check for neon. It is required by subversion libs, but for
996 dnl for some strange reason it's not in it's dependencies.
997 dnl subversion plugin will be disabled if neon (devel) is not
998 dnl installed, even if subversion (devel) is installed.
1000 NEON_CONFIGS="neon-config"
1001 AC_ARG_WITH(neon-config,
1002 [[ --with-neon-config=FILE Use the given path to neon-config when determining
1003 Neon configuration; defaults to "neon-config"]],
1005 if test "$withval" != "yes" -a "$withval" != ""; then
1006 NEON_CONFIGS=$withval
1009 AC_MSG_CHECKING([for Neon])
1011 for VALUE in $NEON_CONFIGS ; do
1012 if $VALUE --cflags > /dev/null 2>&1 ; then
1017 if test $NEON_CONFIG ; then
1018 AC_MSG_RESULT([found])
1020 AC_MSG_RESULT([not found])
1026 dnl ------------------------------------------
1027 dnl Finally prepare subversion build flags
1028 dnl ------------------------------------------
1030 if test -n "$SVN_INCLUDE" ; then
1031 SVN_INCLUDE="-I$SVN_INCLUDE $APR_INCLUDE"
1032 SVN_LIB="-L$SVN_LIB $APR_LIBS -lsvn_client-1 -lsvn_subr-1"
1033 SVN_CFLAGS="$APR_CFLAGS"
1036 AM_CONDITIONAL(BUILD_SVN, [test -n "$SVN_INCLUDE"])
1037 AC_SUBST(SVN_INCLUDE)
1039 AC_SUBST(SVN_CFLAGS)
1041 dnl --------- help outputs -----------
1042 dnl manuals/C/Makefile
1043 dnl manuals/C/anjuta-tutorial/Makefile
1044 dnl manuals/C/anjuta-advanced-tutorial/Makefile
1045 dnl manuals/C/anjuta-faqs/Makefile
1046 dnl manuals/C/anjuta-manual/Makefile
1047 dnl manuals/de/Makefile
1048 dnl manuals/de/anjuta-tutorial/Makefile
1049 dnl manuals/ja/Makefile
1050 dnl manuals/ja/anjuta-faqs/Makefile
1051 dnl manuals/ja/anjuta-manual/Makefile
1057 tagmanager/include/Makefile
1058 global-tags/Makefile
1060 libegg/util/Makefile
1061 libegg/treeviewutils/Makefile
1062 libegg/menu/Makefile
1063 libegg/recent-files/Makefile
1066 libanjuta/libanjuta-1.0.pc
1067 libanjuta/interfaces/Makefile
1072 data/properties/Makefile
1074 doc/anjuta_launcher.1
1077 scripts/anjuta_import.sh
1080 plugins/sample1/Makefile
1081 plugins/gtodo/Makefile
1082 plugins/class-gen/Makefile
1083 plugins/class-gen/templates/Makefile
1084 plugins/patch/Makefile
1085 plugins/editor/Makefile
1086 plugins/editor/scintilla/Makefile
1087 plugins/editor/scintilla/include/Makefile
1088 plugins/document-manager/Makefile
1089 plugins/search/Makefile
1090 plugins/message-view/Makefile
1091 plugins/gdb/Makefile
1092 plugins/gdb/images/Makefile
1093 plugins/debug-manager/Makefile
1094 plugins/debug-manager/images/Makefile
1095 plugins/devhelp/Makefile
1096 plugins/glade/Makefile
1097 plugins/file-manager/Makefile
1098 plugins/file-loader/Makefile
1099 plugins/file-wizard/Makefile
1100 plugins/terminal/Makefile
1101 plugins/build-basic-autotools/Makefile
1102 plugins/profiler/Makefile
1103 plugins/project-manager/Makefile
1104 plugins/symbol-browser/Makefile
1105 plugins/symbol-browser/images/Makefile
1106 plugins/cvs-plugin/Makefile
1107 plugins/project-wizard/Makefile
1108 plugins/macro/Makefile
1109 plugins/subversion/Makefile
1110 plugins/sourceview/Makefile
1111 plugins/tools/Makefile
1112 plugins/tools/scripts/Makefile
1113 plugins/class-inheritance/Makefile
1114 plugins/valgrind/Makefile
1115 plugins/project-import/Makefile
1116 plugins/project-wizard/templates/Makefile
1117 plugins/project-wizard/templates/mkfile/Makefile
1118 plugins/project-wizard/templates/mkfile/src/Makefile
1119 plugins/project-wizard/templates/mkfile/po/Makefile
1120 plugins/project-wizard/templates/minimal/Makefile
1121 plugins/project-wizard/templates/terminal/Makefile
1122 plugins/project-wizard/templates/terminal/src/Makefile
1123 plugins/project-wizard/templates/terminal/po/Makefile
1124 plugins/project-wizard/templates/cpp/Makefile
1125 plugins/project-wizard/templates/cpp/src/Makefile
1126 plugins/project-wizard/templates/cpp/po/Makefile
1127 plugins/project-wizard/templates/gtk/Makefile
1128 plugins/project-wizard/templates/gtk/src/Makefile
1129 plugins/project-wizard/templates/gtk/po/Makefile
1130 plugins/project-wizard/templates/anjuta-plugin/Makefile
1131 plugins/project-wizard/templates/anjuta-plugin/src/Makefile
1132 plugins/project-wizard/templates/anjuta-plugin/po/Makefile
1133 plugins/project-wizard/templates/gnome/Makefile
1134 plugins/project-wizard/templates/gnome/src/Makefile
1135 plugins/project-wizard/templates/gnome/po/Makefile
1136 plugins/project-wizard/templates/gtkmm/Makefile
1137 plugins/project-wizard/templates/gtkmm/src/Makefile
1138 plugins/project-wizard/templates/gtkmm/po/Makefile
1139 plugins/project-wizard/templates/gcj/Makefile
1140 plugins/project-wizard/templates/gcj/src/Makefile
1141 plugins/project-wizard/templates/java/Makefile
1142 plugins/project-wizard/templates/java/src/Makefile
1143 plugins/project-wizard/templates/java/po/Makefile
1144 plugins/project-wizard/templates/python/Makefile
1145 plugins/project-wizard/templates/python/src/Makefile
1146 plugins/project-wizard/templates/python/po/Makefile
1147 plugins/project-wizard/templates/wxwin/Makefile
1148 plugins/project-wizard/templates/wxwin/src/Makefile
1149 plugins/project-wizard/templates/wxwin/po/Makefile
1150 plugins/project-wizard/templates/xlib/Makefile
1151 plugins/project-wizard/templates/xlib/src/Makefile
1152 plugins/project-wizard/templates/xlib/po/Makefile
1153 plugins/project-wizard/templates/xlib-dock/Makefile
1154 plugins/project-wizard/templates/xlib-dock/src/Makefile
1155 plugins/project-wizard/templates/xlib-dock/po/Makefile
1156 plugins/language-support-cpp-java/Makefile
1159 manuals/reference/Makefile
1160 manuals/reference/libanjuta/Makefile
1161 manuals/reference/libanjuta/version.xml
1162 manuals/anjuta-manual/Makefile
1163 manuals/anjuta-faqs/Makefile
1167 echo "-------------------------------------------------------------------"
1168 echo "Conditionally built plugins:"
1169 echo "-------------------------------------------------------------------"
1170 if [ test -n "$SVN_INCLUDE" ]; then
1171 echo "Building subversion plugin: ............................YES"
1173 echo "Building subversion plugin: ............................NO"
1174 echo " Requires apr (>= 0.9.4); http://subversion.org"
1175 echo " Requires apr-util (>= 0.9.4); http://subversion.org"
1176 echo " Requires neon (>= 0.24.5); http://subversion.org"
1177 echo " Requires subversion (>= 1.0.2); http://subversion.org"
1180 if [ test x$libgladeui_found = xyes ]; then
1181 echo "Building glade plugin: .................................YES"
1183 echo "Building glade plugin: .................................NO"
1184 echo " Requires glade-3 (>= 3.0.2)"
1187 if [ test x$devhelp_enabled = xyes ]; then
1188 echo "Building devhelp plugin: ...............................YES"
1190 echo "Building devhelp plugin: ...............................NO"
1191 echo " Requires devhelp"
1194 if [ test x$libgraphviz_found = xyes ]; then
1195 echo "Building class inheritance plugin: .....................YES"
1196 echo "Building performance profiler with function call chart: YES"
1198 echo "Building class inheritance plugin: .....................NO"
1199 echo " Requires graphviz (>= 2.6.0); http://graphviz.org"
1200 echo "Building performance profiler with function call chart: NO"
1201 echo " Requires graphviz (>= 2.6.0); http://graphviz.org"
1204 if [ test x$valgrind = xyes ]; then
1205 echo "Building Valgrind debugger plugin: .....................YES"
1207 echo "Building Valgrind debugger plugin: .....................NO"
1208 echo " Requires binutils-dev"
1211 if [ test x$sourceview = xyes ]; then
1212 echo "Building GtkSourceView based editor: ...................YES"
1214 echo "Building GtkSourceView based editor: ...................NO"
1217 if [ test x$scintilla = xyes ]; then
1218 echo "Building Scintilla based editor: .......................YES"
1220 echo "Building Scintilla based editor: .......................NO"
1222 echo "-------------------------------------------------------------------"