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, 91)
7 m4_define(anjuta_micro_version, 6)
8 m4_define(anjuta_nano_version, 0)
9 m4_define(anjuta_version, anjuta_major_version.anjuta_minor_version.anjuta_micro_version.anjuta_nano_version)
13 [http://bugzilla.gnome.org/enter_bug.cgi?product=anjuta],
15 [http://www.anjuta.org/])
17 AC_CONFIG_HEADERS([config.h])
18 AC_CONFIG_SRCDIR([src/main.c])
19 AC_CONFIG_MACRO_DIR([m4])
22 AC_DEFINE(ANJUTA_MAJOR_VERSION, anjuta_major_version, [Anjuta major version])
23 AC_SUBST(ANJUTA_MAJOR_VERSION, anjuta_major_version)
24 AC_DEFINE(ANJUTA_MINOR_VERSION, anjuta_minor_version, [Anjuta minor version])
25 AC_SUBST(ANJUTA_MINOR_VERSION, anjuta_minor_version)
26 AC_DEFINE(ANJUTA_MICRO_VERSION, anjuta_micro_version, [Anjuta micro version])
27 AC_SUBST(ANJUTA_MICRO_VERSION, anjuta_micro_version)
28 AC_DEFINE(ANJUTA_VERSION, anjuta_version, [Anjuta version])
29 AC_SUBST(ANJUTA_VERSION)
31 ANJUTA_VERSION=anjuta_version
32 AC_SUBST(ANJUTA_VERSION)
37 GTHREAD_REQUIRED=2.22.0
38 GDK_PIXBUF_REQUIRED=2.0.0
41 LIBXML_REQUIRED=2.4.23
46 GTKSOURCEVIEW_REQUIRED=2.91.4
49 LIBDEVHELP_REQUIRED=2.90.6
52 GLADEUI_REQUIRED=3.9.0
61 LIBGRAPHVIZ_REQUIRED=1.0
68 SUBVERSION_REQUIRED=$SVN_MAJOR.$SVN_MINOR.$SVN_PATCH
70 AM_INIT_AUTOMAKE([1.10 dist-bzip2 no-dist-gzip])
71 AM_MAINTAINER_MODE([enable])
73 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
75 dnl Check for C Compiler
79 if [["$LEX" != "flex"]]; then
80 AC_MSG_ERROR(flex is required)
83 if [["$YACC" != "bison"]]; then
84 AC_MSG_ERROR(bison is required)
90 GNOME_COMPILE_WARNINGS([maximum])
91 AM_CFLAGS="$AM_CFLAGS $WARN_CFLAGS"
92 AM_CXXFLAGS="$AM_CXXFLAGS $WARN_CXXFLAGS"
94 dnl Enable debugging mode
96 AS_HELP_STRING([--enable-debug],[Enable debug messages]),
97 [if test "x$enableval" = "xyes"; then
98 AM_CFLAGS="$AM_CFLAGS -DDEBUG"
100 AM_CXXFLAGS="$AM_CXXFLAGS -DDEBUG")
102 AC_SUBST(AM_CXXFLAGS)
104 ANJUTA_LDFLAGS="-no-undefined"
105 ANJUTA_PLUGIN_LDFLAGS="-module -avoid-version -no-undefined"
106 AC_SUBST(ANJUTA_LDFLAGS)
107 AC_SUBST(ANJUTA_PLUGIN_LDFLAGS)
112 dnl Disable deprecated APIs
113 dnl if test x$MAINT = x; then
114 dnl DEPRECATED_FLAGS="-DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
115 dnl AC_SUBST(DEPRECATED_FLAGS)
118 dnl Check for pkg-config
119 PKG_PROG_PKG_CONFIG([0.22])
121 dnl Enable versioned user preferences directory
122 AC_ARG_WITH(pref-suffix,
123 AS_HELP_STRING([--with-pref-suffix=VALUE],[Suffix to add to user preferences dir.]),
124 PREF_SUFFIX="$withval")
126 AC_SUBST(PREF_SUFFIX)
127 AC_DEFINE_UNQUOTED(PREF_SUFFIX,
129 [Suffix to add to preferences directory])
133 LT_INIT([disable-static])
135 dnl ***************************************************************************
136 dnl Check for GObject-Introspection
137 dnl ***************************************************************************
138 m4_ifdef([GOBJECT_INTROSPECTION_CHECK], [GOBJECT_INTROSPECTION_CHECK([0.6.7])],
139 [AM_CONDITIONAL(HAVE_INTROSPECTION, false)])
141 dnl ***************************************************************************
143 dnl ***************************************************************************
144 gjsdir=`pkg-config --variable=jsdir gjs-1.0`
147 dnl Check base modules
149 PKG_CHECK_MODULES([ANJUTA],
150 [gthread-2.0 >= $GTHREAD_REQUIRED
151 glib-2.0 >= $GLIB_REQUIRED
152 gio-2.0 >= $GLIB_REQUIRED
153 gtk+-3.0 >= $GTK_REQUIRED
154 gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED])
156 PKG_CHECK_MODULES([XML],
157 [libxml-2.0 >= $LIBXML_REQUIRED])
159 PKG_CHECK_MODULES([GDL],
160 [gdl-3.0 >= $GDL_REQUIRED])
162 PKG_CHECK_MODULES([GDA],
163 [libgda-4.0 >= $GDA_REQUIRED])
165 PKG_CHECK_MODULES([VTE],
166 [vte-2.90 >= $VTE_REQUIRED])
169 dnl Check for autogen
170 dnl -----------------
171 AC_PATH_PROG(AUTOGEN_PATH, autogen,no)
172 if test x$AUTOGEN_PATH = xno; then
173 AC_MSG_WARN([Couldn't find autogen. You will be able to build anjuta without autogen \
174 but several things won't work. You can get it from http://autogen.sourceforge.net/])
177 dnl Check for Devhelp
178 dnl -----------------
180 AC_ARG_ENABLE(plugin-devhelp,
181 AS_HELP_STRING([--disable-plugin-devhelp],[Disable devhelp plugin support in Anjuta.]),
182 [ if test "$enableval" = "no"; then
183 user_disabled_devhelp=1
185 [ user_disabled_devhelp=0 ] )
187 AC_MSG_CHECKING(if devhelp plugin is disabled)
188 if test "$user_disabled_devhelp" = 1; then
193 PKG_CHECK_MODULES(PLUGIN_DEVHELP,
194 [libdevhelp-3.0 >= $LIBDEVHELP_REQUIRED],
202 AM_CONDITIONAL(HAVE_PLUGIN_DEVHELP, [test x$devhelp_enabled = xyes])
205 dnl ---------------------
207 AC_ARG_ENABLE(plugin-glade,
208 AS_HELP_STRING([--disable-plugin-glade],[Disable glade plugin support in Anjuta.]),
209 [ if test "$enableval" = "no"; then
210 user_disabled_glade=1
212 [ user_disabled_glade=0 ] )
214 AC_MSG_CHECKING(if glade plugin is disabled)
215 if test "$user_disabled_glade" = 1; then
221 PKG_CHECK_MODULES(PLUGIN_GLADE, gladeui-2.0 >= $GLADEUI_REQUIRED,
229 AM_CONDITIONAL(HAVE_PLUGIN_GLADE, [test x$gladeui_found = xyes])
231 dnl Check for gtksourceview
232 dnl -------------------------------------------------------------
233 PKG_CHECK_MODULES(SOURCEVIEW,
234 [gtksourceview-3.0 >= $GTKSOURCEVIEW_REQUIRED])
237 dnl -------------------------------------------------------------
240 AC_HELP_STRING([--disable-vala],[Disable vala support]),
241 [ if test "$enableval" = "no"; then
244 [ user_disabled_vala=0 ])
246 AC_MSG_CHECKING(if vala support is disabled)
247 if test "$user_disabled_vala" = 1; then
253 PKG_CHECK_MODULES(VALA,
254 [libvala-0.12 >= $VALA_REQUIRED])
257 if test x$enable_vala = xyes; then
258 AC_PATH_PROGS(VALAC, [valac-0.12 valac], valac)
262 AM_CONDITIONAL(ENABLE_VALA, [test x$enable_vala = xyes])
265 dnl -------------------------------------------------------------
271 if test x$have_python = xyes; then
272 if test -x $PYTHON-config; then
273 PYTHON_CFLAGS=`$PYTHON-config --cflags`
274 PYTHON_LIBS=`$PYTHON-config --libs`
275 AC_SUBST(PYTHON_CFLAGS)
276 AC_SUBST(PYTHON_LIBS)
282 AM_CONDITIONAL(HAVE_PYTHON, [test x$have_python = xyes])
284 PKG_CHECK_MODULES(PLUGIN_SYMBOL_DB,
285 [libgda-4.0 >= $GDA_REQUIRED])
287 dnl Setup Anjuta Library flags
288 dnl --------------------------
289 LIBANJUTA_CFLAGS='$(ANJUTA_CFLAGS) $(GDL_CFLAGS) $(DEPRECATED_FLAGS) -I$(top_srcdir) -I$(top_builddir)/libanjuta -DPACKAGE_PIXMAPS_DIR=\""$(datadir)/pixmaps/$(PACKAGE)"\" -DPACKAGE_LIB_DIR=\""$(pkglibdir)"\" -DPACKAGE_DATA_DIR=\""$(datadir)/$(PACKAGE)"\"'
290 LIBANJUTA_LIBS='$(top_builddir)/libanjuta/libanjuta-3.la'
291 AC_SUBST(LIBANJUTA_CFLAGS)
292 AC_SUBST(LIBANJUTA_LIBS)
294 dnl Setup FooCanvas Library flags
295 dnl --------------------------
296 LIBFOOCANVAS_CFLAGS='-I$(top_srcdir)'
297 LIBFOOCANVAS_LIBS='$(top_builddir)/libfoocanvas/libanjuta-foocanvas.la'
298 AC_SUBST(LIBFOOCANVAS_CFLAGS)
299 AC_SUBST(LIBFOOCANVAS_LIBS)
301 dnl Checks for Xft/XRender for foocanvas
303 AC_CHECK_LIB(Xrender, XRenderFindFormat,
304 [AC_SUBST(RENDER_LIBS, "-lXrender -lXext")
305 AC_DEFINE(HAVE_RENDER, 1, [Define if libXrender is available.])],
306 [AC_SUBST(RENDER_LIBS, "")],
309 dnl Setup Plugin directories
310 dnl ------------------------
311 anjuta_plugin_dir='$(libdir)/anjuta'
312 anjuta_data_dir='$(datadir)/anjuta'
313 anjuta_ui_dir='$(datadir)/anjuta/ui'
314 anjuta_glade_dir='$(datadir)/anjuta/glade'
315 anjuta_image_dir='$(datadir)/pixmaps/anjuta'
316 AC_SUBST(anjuta_plugin_dir)
317 AC_SUBST(anjuta_data_dir)
318 AC_SUBST(anjuta_ui_dir)
319 AC_SUBST(anjuta_glade_dir)
320 AC_SUBST(anjuta_image_dir)
322 dnl ***************************************************************************
323 dnl Check for marshal and enum generators
324 dnl ***************************************************************************
325 GLIB_GENMARSHAL="`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`"
326 AC_SUBST(GLIB_GENMARSHAL)
327 GLIB_MKENUMS="`$PKG_CONFIG --variable=glib_mkenums glib-2.0`"
328 AC_SUBST(GLIB_MKENUMS)
330 dnl Set up Glade 3 catlog information
331 dnl ---------------------
332 GLADE_PLUGINS_PATH="`$PKG_CONFIG --variable=moduledir gladeui-1.0`"
333 AC_SUBST(GLADE_PLUGINS_PATH)
334 GLADE_CATALOG_PATH="`$PKG_CONFIG --variable=catalogdir gladeui-1.0`"
335 AC_SUBST(GLADE_CATALOG_PATH)
337 dnl ***************************************************************************
338 dnl Internatinalization
339 dnl ***************************************************************************
340 IT_PROG_INTLTOOL([0.40.1])
342 AM_GNU_GETTEXT([external])
343 AM_GNU_GETTEXT_VERSION([0.17])
345 GETTEXT_PACKAGE=anjuta
346 AC_SUBST(GETTEXT_PACKAGE)
347 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
351 dnl ***************************************************************************
352 dnl Check for gtk-doc.
353 dnl ***************************************************************************
356 dnl ***************************************************************************
358 dnl ***************************************************************************
359 GNOME_DOC_INIT([0.18])
361 dnl Define convenience macros
362 dnl -------------------------
363 dnl CHECK_HEADER_DEFINE(LABEL, HEADER [,ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ] ])
364 AC_DEFUN([CHECK_HEADER_DEFINE],
366 AC_MSG_CHECKING("if $1 is defined in $2")
380 dnl Checks for header files.
381 AC_CHECK_HEADERS(dirent.h fcntl.h fnmatch.h stat.h stdlib.h string.h stdint.h)
382 AC_CHECK_HEADERS(time.h types.h unistd.h)
383 AC_CHECK_HEADERS(sys/dir.h sys/stat.h sys/times.h sys/types.h)
385 dnl Checks for typedefs, structures, and compiler characteristics.
391 *cygwin* ) CYGWIN=yes;;
392 *mingw32* ) MINGW32=yes;;
403 AC_MSG_CHECKING("for fpos_t")
404 AC_EGREP_HEADER(fpos_t, stdio.h, AC_MSG_RESULT(yes),
407 AC_DEFINE(fpos_t, long, [fpos_t is type long])
410 AC_MSG_CHECKING("for clock_t")
411 AC_EGREP_HEADER(clock_t, time.h, AC_MSG_RESULT(yes),
414 AC_DEFINE(clock_t, long, [clock_t is type long])
417 CHECK_HEADER_DEFINE(L_tmpnam, stdio.h,, AC_DEFINE(L_tmpnam, 20, [L_tmpname is 20]))
419 CHECK_HEADER_DEFINE(INT_MAX, limits.h,,
420 CHECK_HEADER_DEFINE(MAXINT, limits.h,
421 AC_DEFINE(INT_MAX, MAXINT, [Maximum int size]), AC_DEFINE(INT_MAX, 32767, [Maximum int size])))
423 AC_MSG_CHECKING(if struct stat contains st_ino)
425 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/stat.h>]], [[
430 ]])],[have_st_ino=yes],[have_st_ino=no])
431 AC_MSG_RESULT($have_st_ino)
432 if test yes = "$have_st_ino"; then
433 AC_DEFINE(HAVE_STAT_ST_INO,,[Have stat st_ino])
437 dnl Check for bind in libsocket (needed on Solaris)
438 AC_CHECK_LIB(socket, bind)
440 dnl Check for function forkpty and related headers
441 AC_SEARCH_LIBS(forkpty, util, , AC_DEFINE(EMULATE_FORKPTY, [], [Need to implement our own forkpty()]))
442 AC_CHECK_HEADERS(libutil.h util.h pty.h)
444 dnl Checks for library functions.
445 AC_CHECK_FUNCS(fnmatch)
446 AC_CHECK_FUNCS(strstr)
447 AC_CHECK_FUNCS(stricmp)
448 AC_CHECK_FUNCS(strnicmp)
449 AC_CHECK_FUNCS(getline)
451 dnl for libegg/egg-recent-model.c
452 AC_CHECK_DECLS([lockf])
453 AC_CHECK_FUNCS([lockf])
455 AC_CHECK_FUNCS(fgetpos, have_fgetpos=yes)
457 dnl SEEK_SET should be in stdio.h, but may be in unistd.h on SunOS 4.1.x
458 if test "$have_fgetpos" != yes ; then
459 CHECK_HEADER_DEFINE(SEEK_SET, stdio.h,,
460 CHECK_HEADER_DEFINE(SEEK_SET, unistd.h,,
461 AC_DEFINE(SEEK_SET, 0, [Seek set 0])))
464 AC_CHECK_FUNCS(mkstemp, have_mkstemp=yes)
465 if test "$have_mkstemp" != yes ; then
466 AC_CHECK_FUNCS(chmod)
467 if test "$tmpdir_specified" = yes ; then
468 AC_MSG_RESULT(use of tmpnam overrides temporary directory selection)
471 AC_MSG_CHECKING(directory to use for temporary files)
472 if test -z "$enable_tmpdir" -o "$enable_tmpdir" = no -o "$enable_tmpdir" = yes ;
474 else tmpdir="$enable_tmpdir"
476 if test -d $tmpdir ; then
477 AC_MSG_RESULT($tmpdir)
478 AC_DEFINE_UNQUOTED(TMPDIR, "$tmpdir", [Directory for temporary files])
480 AC_MSG_WARN($tmpdir does not exist)
484 AC_CHECK_FUNCS(strerror opendir)
485 AC_CHECK_FUNCS(clock times, break)
486 AC_CHECK_FUNCS(remove, have_remove=yes,
487 CHECK_HEADER_DEFINE(remove, unistd.h,, AC_DEFINE(remove, unlink, [Remove is unlink])))
489 AC_CHECK_FUNCS(truncate, have_truncate=yes)
490 dnl === Cannot nest AC_CHECK_FUNCS() calls
491 if test "$have_truncate" != yes ; then
492 AC_CHECK_FUNCS(ftruncate, have_ftruncate=yes)
493 if test "$have_ftruncate" != yes ; then
494 AC_CHECK_FUNCS(chsize)
498 AC_CHECK_FUNCS(setenv, have_setenv=yes)
499 dnl === Cannot nest AC_CHECK_FUNCS() calls
500 if test "$have_setenv" != yes ; then
501 AC_CHECK_FUNCS(putenv, have_putenv=yes)
502 if test "$have_putenv" = yes ; then
503 AC_EGREP_HEADER(putenv, stdlib.h, have_putenv_prototype=yes)
504 if test "$have_putenv_prototype" = yes ; then
505 AC_MSG_CHECKING("putenv prototype")
506 AC_EGREP_HEADER([[^A-Za-zo-9_]putenv[ ]*\(.*const.*\)[ ]*;],
507 stdlib.h, AC_MSG_RESULT(correct),
509 AC_MSG_RESULT(no const)
510 AC_DEFINE(NON_CONST_PUTENV_PROTOTYPE,,[putenv has non constant prototype])
516 dnl -----------------------------
517 dnl Checks for FreeBSD Build
518 dnl -----------------------------
519 AC_MSG_CHECKING(if building on FreeBSD)
521 if test `uname -s` = "FreeBSD" ; then
523 FREEBSD_BUILD=-DFREEBSD
524 AC_SUBST(FREEBSD_BUILD)
525 AC_PATH_PROG(GMAKE, gmake, no)
526 if test "x$GMAKE" = "xno"; then
527 AC_MSG_ERROR(You need gmake installed to build Anjuta!)
536 dnl Checks for missing prototypes
537 dnl -----------------------------
538 AC_MSG_NOTICE([checking for missing prototypes...])
540 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))])
542 if test "$have_remove" = yes ; then
543 CHECK_PROTO(remove, stdio.h)
545 CHECK_PROTO(unlink, unistd.h)
547 CHECK_PROTO(malloc, stdlib.h)
548 CHECK_PROTO(getenv, stdlib.h)
549 CHECK_PROTO(stat, sys/stat.h)
550 CHECK_PROTO(lstat, sys/stat.h)
551 if test "$have_fgetpos" = yes ; then
552 CHECK_PROTO(fgetpos, stdio.h)
554 if test "$have_truncate" = yes ; then
555 CHECK_PROTO(truncate, unistd.h)
557 if test "$have_ftruncate" = yes ; then
558 CHECK_PROTO(ftruncate, unistd.h)
561 dnl **********************************************************
562 dnl check if we have svn libraries to build subversion plugin
563 dnl (stolen from kdevelop ;-)
564 dnl **********************************************************
566 AC_MSG_CHECKING(for Subversion svn-config)
567 AC_ARG_WITH(subversion-dir,
568 AS_HELP_STRING([--with-subversion-dir=DIR],[Where Subversion is installed ]),
570 SVNCONFIG="$withval/bin/svn-config"
573 if test -z "$SVNCONFIG"; then
574 _SVNCONFIG="`svn-config --prefix 2> /dev/null`"
575 if test -n "$_SVNCONFIG"; then
576 SVNCONFIG="$_SVNCONFIG/bin/svn-config"
581 if test -x "$SVNCONFIG"; then
582 SVNLD="`$SVNCONFIG --ldflags 2> /dev/null`"
583 SVN_LIB="`$SVNCONFIG --libs --cflags 2> /dev/null` -lsvn_client-1 -lsvn_subr-1"
584 dnl ugly hack for subversion svn-config problems in 0.14.x, to be removed when svn-config is fixed
585 SVN_INCLUDE="`$SVNCONFIG --includes 2> /dev/null` -I$_SVNCONFIG/include/subversion-1/"
588 AC_MSG_RESULT(not found)
590 dnl just a fallback to debian's config so that it works for me :)
591 AC_ARG_WITH(svn-include,
592 [[ --with-svn-include=DIR Use the given path to the subversion headers.]],
594 if test "$withval" != "yes" -a "$withval" != ""; then
595 SVN_INCLUDES=$withval
598 if test -z "$SVN_INCLUDES"; then
599 SVN_INCLUDES="/usr/local/include /usr/include"
601 AC_MSG_CHECKING([for Subversion headers])
603 for VALUE in $SVN_INCLUDES ; do
604 if test -f $VALUE/subversion-1/svn_types.h ; then
605 SVN_INCLUDE=$VALUE/subversion-1
608 if test -f $VALUE/svn_types.h ; then
613 if test $SVN_INCLUDE ; then
614 AC_MSG_RESULT([found])
616 AC_MSG_RESULT([not found])
618 SVN_LIBS="/usr/local/lib64 /usr/local/lib /usr/lib64 /usr/lib"
620 [[ --with-svn-lib=DIR Use the given path to the subversion libraries.]],
622 if test "$withval" != "yes" -a "$withval" != ""; then
626 AC_MSG_CHECKING([for Subversion libraries])
628 for VALUE in $SVN_LIBS ; do
629 if ls $VALUE/libsvn_client-1.* 1>/dev/null 2>&1; then
634 if test $SVN_LIB ; then
635 AC_MSG_RESULT([found])
637 AC_MSG_RESULT([not found])
641 dnl ******************************************************************
642 dnl Check for extra libs required by subversion.
643 dnl FIXME: This should actually be done by subversion and not by us.
644 dnl ******************************************************************
646 AC_ARG_ENABLE(plugin-subversion,
647 AS_HELP_STRING([--disable-plugin-subversion],[Disable subversion support in Anjuta.]),
648 [ if test "$enableval" = "no"; then
649 user_disabled_subversion=1
651 [ user_disabled_subversion=0 ] )
653 AC_MSG_CHECKING(if subversion support is disabled)
654 if test "$user_disabled_subversion" = 1; then
662 if test -n "$SVN_INCLUDE" ; then
663 dnl ------------------------------------
664 dnl APR. Required by subversion (devel)
665 dnl ------------------------------------
667 PKG_CHECK_MODULES(APR, \
668 apr-1, have_apr=yes, have_apr=no)
669 if test x"$have_apr" = "xno"; then
673 dnl -----------------------------------------
674 dnl APR util. Required by subversion (devel)
675 dnl------------------------------------------
677 PKG_CHECK_MODULES(APR_UTILS, \
678 apr-util-1, have_apr_util=yes, have_apr_util=no)
679 if test x"$have_apr_util" = "xno"; then
683 dnl -----------------------------------------
684 dnl NEON. Required by subversion (devel)
685 dnl------------------------------------------
687 PKG_CHECK_MODULES(NEON, \
688 neon, have_neon=yes, have_neon=no)
689 if test x"$have_neon" = "xno"; then
693 dnl Make sure our SVN version is high enough
694 dnl Eww, eww, eww, this is dirty
695 AC_MSG_CHECKING([for subversion >= $SUBVERSION_REQUIRED])
697 dnl Temporarily set CFLAGS so that include dirs are found
699 CFLAGS="-I$SVN_INCLUDE $APR_CFLAGS"
701 [AC_LANG_PROGRAM([[#include <svn_version.h>]],
703 #if (SVN_VER_MAJOR < $SVN_MAJOR) || (SVN_VER_MINOR < $SVN_MINOR) || (SVN_VER_PATCH < $SVN_PATCH)
704 # error "Version too low"
706 ]])], AC_MSG_RESULT(yes), have_svn_version=no)
707 if test x"$have_svn_version" = "xno"; then
714 dnl ------------------------------------------
715 dnl Finally prepare subversion build flags
716 dnl ------------------------------------------
718 if test -n "$SVN_INCLUDE" ; then
719 SVN_INCLUDE="-I$SVN_INCLUDE"
720 if test x != "x$SVN_LIB" ; then
721 SVN_LIB="-L$SVN_LIB $APR_LIBS $APR_UTILS_LIBS $NEON_LIBS -lsvn_client-1 -lsvn_subr-1"
723 SVN_LIB="$APR_LIBS $APR_UTILS_LIBS $NEON_LIBS -lsvn_client-1 -lsvn_subr-1"
725 SVN_CFLAGS="$APR_CFLAGS $APR_UTILS_CFLAGS $NEON_CFLAGS"
728 AM_CONDITIONAL(BUILD_SVN, [test -n "$SVN_INCLUDE"])
729 AC_SUBST(SVN_INCLUDE)
733 dnl ------------------------------------------
734 dnl Symbol-db shared memory checks
735 dnl ------------------------------------------
737 SYMBOL_DB_SHM="/dev/shm"
739 AC_MSG_CHECKING(for symbol-db shared memory)
740 AC_ARG_WITH(symbol-db-shm,
741 AS_HELP_STRING([--with-symbol-db-shm=DIR],[Where shared memory is placed ]),
744 SYMBOL_DB_SHM="$withval"
746 if test "$user_specified_shm" = 1; then
752 AC_SUBST(SYMBOL_DB_SHM)
755 dnl Check for graphviz (class inheritance and profiler plugins)
756 AC_ARG_ENABLE(graphviz,
757 AS_HELP_STRING([--disable-graphviz],[Disable GraphViz support in Anjuta]),
758 [ if test "$enableval" = "no"; then
759 user_disabled_graphviz=1
761 [ user_disabled_graphviz=0 ])
763 AC_MSG_CHECKING(if GraphViz support is disabled)
764 if test "$user_disabled_graphviz" = 1; then
766 libgraphviz_found="no"
769 PKG_CHECK_MODULES(GRAPHVIZ,
770 [libgvc >= $LIBGRAPHVIZ_REQUIRED libgraph >= $LIBGRAPHVIZ_REQUIRED],
771 [libgraphviz_found="yes"],
772 [libgraphviz_found="no"])
775 AM_CONDITIONAL(HAVE_GRAPHVIZ, [test x$libgraphviz_found = xyes])
777 dnl Test using autotest
778 dnl -----------------------------
779 AC_CONFIG_TESTDIR(plugins/am-project/tests)
780 AM_MISSING_PROG([AUTOM4TE], [autom4te])
786 libanjuta/interfaces/Makefile
787 libanjuta/libanjuta-3.0.pc
788 libanjuta/anjuta-version.h
791 pixmaps/16x16/Makefile
792 pixmaps/22x22/Makefile
793 pixmaps/24x24/Makefile
794 pixmaps/32x32/Makefile
795 pixmaps/48x48/Makefile
796 pixmaps/scalable/Makefile
800 doc/anjuta-launcher.1
805 plugins/class-gen/Makefile
806 plugins/class-gen/templates/Makefile
807 plugins/code-analyzer/Makefile
808 plugins/patch/Makefile
809 plugins/document-manager/Makefile
810 plugins/document-manager/images/Makefile
811 plugins/message-view/Makefile
813 plugins/gdb/images/Makefile
814 plugins/debug-manager/Makefile
815 plugins/debug-manager/images/Makefile
816 plugins/devhelp/Makefile
817 plugins/devhelp/images/Makefile
818 plugins/glade/Makefile
819 plugins/glade/images/Makefile
820 plugins/js-debugger/Makefile
821 plugins/file-manager/Makefile
822 plugins/file-loader/Makefile
823 plugins/file-wizard/Makefile
824 plugins/build-basic-autotools/Makefile
825 plugins/project-manager/Makefile
826 plugins/symbol-db/benchmark/Makefile
827 plugins/symbol-db/benchmark/symbol-db/Makefile
828 plugins/symbol-db/benchmark/libgda/Makefile
829 plugins/symbol-db/benchmark/sqlite/Makefile
830 plugins/symbol-db/images/Makefile
831 plugins/symbol-db/Makefile
832 plugins/symbol-db/anjuta-tags/Makefile
833 plugins/project-wizard/Makefile
834 plugins/snippets-manager/Makefile
835 plugins/cvs-plugin/Makefile
836 plugins/subversion/Makefile
838 plugins/git/images/Makefile
839 plugins/sourceview/Makefile
840 plugins/terminal/Makefile
841 plugins/tools/Makefile
842 plugins/tools/scripts/Makefile
843 plugins/language-manager/Makefile
844 plugins/project-import/Makefile
845 plugins/project-wizard/templates/Makefile
846 plugins/project-wizard/templates/mkfile/Makefile
847 plugins/project-wizard/templates/mkfile/src/Makefile
848 plugins/project-wizard/templates/mkfile/po/Makefile
849 plugins/project-wizard/templates/minimal/Makefile
850 plugins/project-wizard/templates/js_minimal/Makefile
851 plugins/project-wizard/templates/js_minimal/src/Makefile
852 plugins/project-wizard/templates/terminal/Makefile
853 plugins/project-wizard/templates/terminal/src/Makefile
854 plugins/project-wizard/templates/terminal/po/Makefile
855 plugins/project-wizard/templates/cpp/Makefile
856 plugins/project-wizard/templates/cpp/src/Makefile
857 plugins/project-wizard/templates/cpp/po/Makefile
858 plugins/project-wizard/templates/gtk/Makefile
859 plugins/project-wizard/templates/gtk/src/Makefile
860 plugins/project-wizard/templates/gtk/po/Makefile
861 plugins/project-wizard/templates/gtkapplication/Makefile
862 plugins/project-wizard/templates/gtkapplication/src/Makefile
863 plugins/project-wizard/templates/gtkapplication/po/Makefile
864 plugins/project-wizard/templates/anjuta-plugin/Makefile
865 plugins/project-wizard/templates/anjuta-plugin/src/Makefile
866 plugins/project-wizard/templates/anjuta-plugin/po/Makefile
867 plugins/project-wizard/templates/gtkmm/Makefile
868 plugins/project-wizard/templates/gtkmm/src/Makefile
869 plugins/project-wizard/templates/gtkmm/po/Makefile
870 plugins/project-wizard/templates/gcj/Makefile
871 plugins/project-wizard/templates/gcj/src/Makefile
872 plugins/project-wizard/templates/java/Makefile
873 plugins/project-wizard/templates/java/src/Makefile
874 plugins/project-wizard/templates/java/po/Makefile
875 plugins/project-wizard/templates/python/Makefile
876 plugins/project-wizard/templates/python/src/Makefile
877 plugins/project-wizard/templates/python/po/Makefile
878 plugins/project-wizard/templates/pygtk/Makefile
879 plugins/project-wizard/templates/pygtk/src/Makefile
880 plugins/project-wizard/templates/pygtk/po/Makefile
881 plugins/project-wizard/templates/pygtk/data/Makefile
882 plugins/project-wizard/templates/vala-gtk/Makefile
883 plugins/project-wizard/templates/vala-gtk/src/Makefile
884 plugins/project-wizard/templates/wxwin/Makefile
885 plugins/project-wizard/templates/wxwin/src/Makefile
886 plugins/project-wizard/templates/wxwin/po/Makefile
887 plugins/project-wizard/templates/xlib/Makefile
888 plugins/project-wizard/templates/xlib/src/Makefile
889 plugins/project-wizard/templates/xlib/po/Makefile
890 plugins/project-wizard/templates/xlib-dock/Makefile
891 plugins/project-wizard/templates/xlib-dock/src/Makefile
892 plugins/project-wizard/templates/xlib-dock/po/Makefile
893 plugins/project-wizard/templates/sdl/Makefile
894 plugins/project-wizard/templates/sdl/src/Makefile
895 plugins/project-wizard/templates/sdl/po/Makefile
896 plugins/project-wizard/templates/licenses/Makefile
897 plugins/project-wizard/templates/library/Makefile
898 plugins/project-wizard/templates/library/src/Makefile
899 plugins/project-wizard/templates/library/po/Makefile
900 plugins/project-wizard/templates/directory/Makefile
901 plugins/project-wizard/templates/m4/Makefile
902 plugins/am-project/Makefile
903 plugins/am-project/tests/atlocal
904 plugins/am-project/tests/Makefile
905 plugins/mk-project/Makefile
906 plugins/dir-project/Makefile
907 plugins/language-support-cpp-java/Makefile
908 plugins/language-support-cpp-java/cxxparser/Makefile
909 plugins/run-program/Makefile
910 plugins/starter/Makefile
911 plugins/language-support-js/Makefile
912 plugins/language-support-vala/Makefile
913 plugins/language-support-python/Makefile
914 plugins/python-loader/Makefile
917 manuals/reference/Makefile
918 manuals/reference/libanjuta/Makefile
919 manuals/reference/libanjuta/version.xml
920 manuals/anjuta-manual/Makefile
921 manuals/anjuta-faqs/Makefile
922 manuals/anjuta-build-tutorial/Makefile
927 echo "-------------------------------------------------------------------"
928 echo "Conditionally built plugins:"
929 echo "-------------------------------------------------------------------"
930 if [ test -n "$SVN_INCLUDE" ]; then
931 echo "Building subversion plugin: ............................YES"
933 echo "Building subversion plugin: ............................NO"
934 echo " Requires apr (>= 0.9.4); http://subversion.org"
935 echo " Requires apr-util (>= 0.9.4); http://subversion.org"
936 echo " Requires neon (>= 0.28.2); http://subversion.org"
937 echo " Requires subversion (>= 1.5); http://subversion.org"
940 if [ test x$gladeui_found = xyes ]; then
941 echo "Building glade plugin: .................................YES"
943 echo "Building glade plugin: .................................NO"
944 echo " Requires glade-3 (>= $GLADEUI_REQUIRED)"
947 if [ test x$devhelp_enabled = xyes ]; then
948 echo "Building devhelp plugin: ...............................YES"
950 echo "Building devhelp plugin: ...............................NO"
951 echo " Requires libdevhelp-3.0 (>= $LIBDEVHELP_REQUIRED)"
953 if [ test x$enable_vala = xyes ]; then
954 echo "Building Vala support: .................................YES"
956 echo "Building Vala support: .................................NO"
957 echo " Requires libvala (>= $VALA_REQUIRED)"
959 if [ test x$libgraphviz_found = xyes ]; then
960 echo "Building class inheritance plugin: .....................YES"
962 echo "Building class inheritance plugin: .....................NO"
963 echo " Requires graphviz (>= 2.6.0); http://graphviz.org"
965 echo "-------------------------------------------------------------------"
966 echo "AM_CFLAGS = $AM_CFLAGS"
967 echo "AM_CXXFLAGS = $AM_CXXFLAGS"