configure.ac 31 KB
Newer Older
1
dnl Process this file with autoconf to produce a configure script.
2

3
AC_PREREQ(2.65)
4

5 6 7
m4_define(anjuta_major_version,  3)
m4_define(anjuta_minor_version,  16)
m4_define(anjuta_micro_version,  0)
8
m4_define(anjuta_version, anjuta_major_version.anjuta_minor_version.anjuta_micro_version)
9
m4_define(bugzilla_version, anjuta_major_version.anjuta_minor_version.anjuta_micro_version)
10

11
AC_INIT([Anjuta],[anjuta_version],[http://bugzilla.gnome.org/enter_bug.cgi?product=anjuta],[anjuta],[http://www.anjuta.org/])
12 13 14 15 16

AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_MACRO_DIR([m4])

17 18 19 20 21 22 23 24 25

AC_DEFINE(ANJUTA_MAJOR_VERSION, anjuta_major_version, [Anjuta major version])
AC_SUBST(ANJUTA_MAJOR_VERSION, anjuta_major_version)
AC_DEFINE(ANJUTA_MINOR_VERSION, anjuta_minor_version, [Anjuta minor version])
AC_SUBST(ANJUTA_MINOR_VERSION, anjuta_minor_version)
AC_DEFINE(ANJUTA_MICRO_VERSION, anjuta_micro_version, [Anjuta micro version])
AC_SUBST(ANJUTA_MICRO_VERSION, anjuta_micro_version)
AC_DEFINE(ANJUTA_VERSION, anjuta_version, [Anjuta version])
AC_SUBST(ANJUTA_VERSION)
26

27 28 29
ANJUTA_VERSION=anjuta_version
AC_SUBST(ANJUTA_VERSION)

30 31 32
BUGZILLA_VERSION=bugzilla_version
AC_SUBST(BUGZILLA_VERSION)

33
dnl Anjuta core
34
GLIB_REQUIRED=2.34.0
35
GTK_REQUIRED=3.10.0
36 37
GTHREAD_REQUIRED=2.22.0
GDK_PIXBUF_REQUIRED=2.0.0
38
GDA4_REQUIRED=4.2.0
39
GDA5_REQUIRED=5.0.0
40
LIBXML_REQUIRED=2.4.23
41
GDL_REQUIRED=3.5.5
42 43 44
LIBWNCK_REQUIRED=2.12

dnl GtkSourceView
45
GTKSOURCEVIEW_REQUIRED=3.0.0
46

47 48 49
dnl Terminal
VTE_REQUIRED=0.27.6

50
dnl Devhelp
51
LIBDEVHELP_REQUIRED=3.7.4
52 53

dnl Glade
54
GLADEUI_REQUIRED=3.12.0
55 56

dnl Introspection
57
GI_REQUIRED=0.9.5
58 59

dnl Subversion plugin
James Liggett's avatar
James Liggett committed
60
NEON_REQUIRED=0.28.2
61
SERF_REQUIRED=1.2.0
62
SVN_MAJOR=1
James Liggett's avatar
James Liggett committed
63
SVN_MINOR=5
64 65
SVN_PATCH=0
SUBVERSION_REQUIRED=$SVN_MAJOR.$SVN_MINOR.$SVN_PATCH
66

67
AM_INIT_AUTOMAKE([1.10 dist-xz no-dist-gzip tar-ustar])
68 69
AM_MAINTAINER_MODE([enable])

70
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
Stéphane Démurget's avatar
Stéphane Démurget committed
71

72
dnl Check for C Compiler
73 74
AC_PROG_CC
AC_PROG_CPP
75
AC_PROG_LEX
76
if test "$LEX" != "flex"; then
77 78 79
	AC_MSG_ERROR(flex is required)
fi
AC_PROG_YACC
80
if test "$YACC" != "bison -y"; then
81 82
	AC_MSG_ERROR(bison is required)
fi
83 84
AC_LANG([C])
AC_LANG([C++])
85
AC_PROG_CXX
86 87
AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],,
   AC_MSG_ERROR([C++ Compiler required to compile Anjuta]))
88
AM_PROG_CC_C_O
89

90
GNOME_COMPILE_WARNINGS([yes])
91
AM_CFLAGS="$AM_CFLAGS $WARN_CFLAGS"
92
AM_CXXFLAGS="$AM_CXXFLAGS $WARN_CXXFLAGS"
93

94 95
dnl Enable debugging mode
AC_ARG_ENABLE(debug,
96
  AS_HELP_STRING([--enable-debug],[Enable debug messages]),
97 98 99
  [if test "x$enableval" = "xyes"; then
      AM_CFLAGS="$AM_CFLAGS -DDEBUG"
  fi]
100
  AM_CXXFLAGS="$AM_CXXFLAGS -DDEBUG")
101
AC_SUBST(AM_CFLAGS)
102
AC_SUBST(AM_CXXFLAGS)
103

104 105
ANJUTA_LDFLAGS="-no-undefined"
ANJUTA_PLUGIN_LDFLAGS="-module -avoid-version -no-undefined"
106
AC_SUBST(ANJUTA_LDFLAGS)
107 108
AC_SUBST(ANJUTA_PLUGIN_LDFLAGS)

109 110 111
dnl GSettings
GLIB_GSETTINGS

112
dnl Disable deprecated APIs
113 114 115 116
dnl if test x$MAINT = x; then
dnl 	DEPRECATED_FLAGS="-DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
dnl	AC_SUBST(DEPRECATED_FLAGS)
dnl fi
Naba Kumar's avatar
Naba Kumar committed
117

118 119 120
dnl Check for pkg-config
PKG_PROG_PKG_CONFIG([0.22])

Naba Kumar's avatar
Naba Kumar committed
121 122
dnl Enable versioned user preferences directory
AC_ARG_WITH(pref-suffix,
123
  AS_HELP_STRING([--with-pref-suffix=VALUE],[Suffix to add to user preferences dir.]),
124
  PREF_SUFFIX="$withval")
Naba Kumar's avatar
Naba Kumar committed
125 126 127 128 129

AC_SUBST(PREF_SUFFIX)
AC_DEFINE_UNQUOTED(PREF_SUFFIX,
      "${PREF_SUFFIX}",
	  [Suffix to add to preferences directory])
130

131 132 133 134
# Initialize libtool
LT_PREREQ([2.2])
LT_INIT([disable-static])

Maxim Ermilov's avatar
Maxim Ermilov committed
135
dnl ***************************************************************************
136 137
dnl Check for GObject-Introspection
dnl ***************************************************************************
138
m4_ifdef([GOBJECT_INTROSPECTION_CHECK], [GOBJECT_INTROSPECTION_CHECK([0.6.7])],
139
[AM_CONDITIONAL(HAVE_INTROSPECTION, false)])
140 141 142

dnl ***************************************************************************
dnl Set gjsdir
Maxim Ermilov's avatar
Maxim Ermilov committed
143 144 145 146
dnl ***************************************************************************
gjsdir=`pkg-config --variable=jsdir gjs-1.0`
AC_SUBST(gjsdir)

147
dnl Check base modules
148

149 150
PKG_CHECK_MODULES([ANJUTA],
   [gthread-2.0 >= $GTHREAD_REQUIRED
151 152
	glib-2.0 >= $GLIB_REQUIRED
	gio-2.0 >= $GLIB_REQUIRED
153
	gmodule-2.0 >= $GLIB_REQUIRED
154
	gtk+-3.0 >= $GTK_REQUIRED
155 156 157 158 159 160 161 162 163
	gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED])

PKG_CHECK_MODULES([XML],
   [libxml-2.0 >= $LIBXML_REQUIRED])

PKG_CHECK_MODULES([GDL],
   [gdl-3.0 >= $GDL_REQUIRED])

PKG_CHECK_MODULES([GDA],
164 165 166
   [libgda-5.0 >= $GDA5_REQUIRED],,
   [PKG_CHECK_MODULES([GDA],
      [libgda-4.0 >= $GDA4_REQUIRED])])
167

Naba Kumar's avatar
Naba Kumar committed
168 169 170 171
dnl Check for autogen
dnl -----------------
AC_PATH_PROG(AUTOGEN_PATH, autogen,no)
if test x$AUTOGEN_PATH = xno; then
172 173
   AC_MSG_WARN([Couldn't find autogen. You will be able to build anjuta without autogen \
                but several things won't work. You can get it from http://autogen.sourceforge.net/])
Naba Kumar's avatar
Naba Kumar committed
174 175
fi

176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
dnl Check for Terminal
dnl ---------------------

AC_ARG_ENABLE(plugin-terminal,
  AS_HELP_STRING([--disable-plugin-terminal],[Disable terminal plugin support in Anjuta.]),
  [ if test "$enableval" = "no"; then
       user_disabled_terminal=1
    fi ],
  [ user_disabled_terminal=0 ] )

AC_MSG_CHECKING(if terminal plugin is disabled)
if test "$user_disabled_terminal" = 1; then
	AC_MSG_RESULT(yes)
	terminal_enabled="no"
else
	AC_MSG_RESULT(no)
192 193 194 195 196 197 198 199 200 201 202 203 204 205
	PKG_CHECK_EXISTS([vte-2.91 >= $VTE_REQUIRED],
		 [vte_2_91_enabled=yes],
		 [vte_2_91_enabled=no])
	if test $vte_2_91_enabled = yes; then
		PKG_CHECK_MODULES(PLUGIN_TERMINAL, [vte-2.91 >= $VTE_REQUIRED],
	    		[terminal_enabled=yes],
			[terminal_enabled=no])
		AC_DEFINE(HAVE_VTE_2_91,1,[libvte 2.91 support])
	else
		PKG_CHECK_MODULES(PLUGIN_TERMINAL, [vte-2.90 >= $VTE_REQUIRED],
	    		[terminal_enabled=yes],
			[terminal_enabled=no])
		AC_DEFINE(HAVE_VTE_2_90,1,[libvte 2.90 support])
	fi
206 207 208 209
fi

AM_CONDITIONAL(HAVE_PLUGIN_TERMINAL, [test x$terminal_enabled = xyes])

210 211
dnl Check for Devhelp
dnl -----------------
212 213

AC_ARG_ENABLE(plugin-devhelp,
214
  AS_HELP_STRING([--disable-plugin-devhelp],[Disable devhelp plugin support in Anjuta.]),
215 216
  [ if test "$enableval" = "no"; then
       user_disabled_devhelp=1
217
    fi ],
218
  [ user_disabled_devhelp=0 ] )
219 220 221 222 223 224 225

AC_MSG_CHECKING(if devhelp plugin is disabled)
if test "$user_disabled_devhelp" = 1; then
	AC_MSG_RESULT(yes)
	devhelp_enabled="no"
else
	AC_MSG_RESULT(no)
226
	PKG_CHECK_MODULES(PLUGIN_DEVHELP,
227
				[libdevhelp-3.0 >= $LIBDEVHELP_REQUIRED],
228 229 230 231 232
				[
				    devhelp_enabled=yes
				], [
				    devhelp_enabled=no
				])
233 234
fi

235 236 237 238 239
if test "x$devhelp_enabled" = "xyes"; then
	case "$PLUGIN_DEVHELP_LIBS" in
		*webkit2gtk-3.0*)
			AC_DEFINE([HAVE_WEBKIT2], [1], [Defined if devhelp is built against webkitgtk2])
			;;
240 241 242
		*webkit2gtk-4.0*)
			AC_DEFINE([HAVE_WEBKIT2], [1], [Defined if devhelp is built against webkitgtk2])
			;;
243 244
		esac
fi
245
AM_CONDITIONAL(HAVE_PLUGIN_DEVHELP, [test x$devhelp_enabled = xyes])
246

247 248
dnl Check for Glade3
dnl ---------------------
249

250
AC_ARG_ENABLE(plugin-glade,
251
  AS_HELP_STRING([--disable-plugin-glade],[Disable glade plugin support in Anjuta.]),
252 253 254 255
  [ if test "$enableval" = "no"; then
       user_disabled_glade=1
    fi ],
  [ user_disabled_glade=0 ] )
256 257 258 259

AC_MSG_CHECKING(if glade plugin is disabled)
if test "$user_disabled_glade" = 1; then
	AC_MSG_RESULT(yes)
260
	gladeui_found="no"
261 262
else
	AC_MSG_RESULT(no)
263
	gladeui_version=0
264
	PKG_CHECK_MODULES(PLUGIN_GLADE, gladeui-2.0 >= $GLADEUI_REQUIRED,
265
	    [
266
		gladeui_found=yes
267
	    ], [
268
		gladeui_found=no
269
	    ])
270 271
fi

272
AM_CONDITIONAL(HAVE_PLUGIN_GLADE, [test x$gladeui_found = xyes])
273

274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302
dnl Glade catalog
dnl ---------------------

AC_ARG_ENABLE(glade-catalog,
  AS_HELP_STRING([--enable-glade-catalog], [Enable glade catalog. Glade UI libraries must be installed]),
  [ user_enabled_glade_catalog=1 ],
  [ user_enabled_glade_catalog=0 ])

glade_catalog_enabled="no"

AC_MSG_CHECKING(if glade catalog is enabled)
if test "$gladeui_found" = "yes"; then
  if test "$user_enabled_glade_catalog" = 1; then
    AC_MSG_RESULT(yes)
    glade_catalog_enabled="yes"
    GLADE_CATALOG_PATH=`pkg-config --variable=catalogdir gladeui-2.0`
    GLADE_PLUGINS_PATH=`pkg-config --variable=moduledir gladeui-2.0`

    AC_SUBST(GLADE_CATALOG_PATH)
    AC_SUBST(GLADE_PLUGINS_PATH)
  else
    AC_MSG_RESULT(no) 
  fi
else
  AC_MSG_RESULT(no)
fi

AM_CONDITIONAL(ENABLE_GLADE_CATALOG, [test x$glade_catalog_enabled = xyes])

303
dnl Check for gtksourceview
304
dnl -------------------------------------------------------------
305
PKG_CHECK_MODULES(SOURCEVIEW,
306
		[gtksourceview-3.0 >= $GTKSOURCEVIEW_REQUIRED])
307

308 309 310 311 312 313 314

dnl Check for libsqlite3 used in symbol-db benchmarks
dnl -------------------------------------------------------------
PKG_CHECK_MODULES(SQLITE, sqlite3, sqlite3_found=yes, sqlite3_found=no)
AM_CONDITIONAL(HAVE_SQLITE, [test x$sqlite3_found = xyes])


315 316 317
dnl Check for vala
dnl -------------------------------------------------------------

318
AC_ARG_ENABLE(vala,
319
	AS_HELP_STRING([--disable-vala],[Disable vala support]),
320 321 322 323 324 325 326 327 328 329
	[ if test "$enableval" = "no"; then
		user_disabled_vala=1
	  fi ],
	[ user_disabled_vala=0 ])

AC_MSG_CHECKING(if vala support is disabled)
if test "$user_disabled_vala" = 1; then
        AC_MSG_RESULT(yes)
	enable_vala="no"
else
330 331
        AC_MSG_RESULT(no)
	AC_MSG_CHECKING(if libvala is available)
332
	m4_foreach([VERSION], [[0.18], [0.20], [0.22], [0.24], [0.26], [0.28]],
333 334
		[PKG_CHECK_EXISTS([ libvala-VERSION ],
			 [ valaver="-VERSION" ])
335 336
			 ])
	if test "x$valaver" != "x"; then
337 338
		AC_MSG_RESULT(yes)
		enable_vala="yes"
339 340
		LIBVALA="libvala${valaver}"
		PKG_CHECK_MODULES([VALA], ${LIBVALA})
341 342 343
	else
		AC_MSG_RESULT(no)
		enable_vala="no"
344
		VALA_REQUIRED=0.18.0
345
	fi
346
	AC_SUBST(LIBVALA)
347
fi
348

349
if test x$enable_vala = xyes; then
350
	AC_PATH_PROGS(VALAC, [valac${valaver} valac], valac)
351 352 353
	AC_SUBST(VALAC)
fi

354 355
AM_CONDITIONAL(ENABLE_VALA, [test x$enable_vala = xyes])

356 357 358 359 360 361 362 363 364 365 366 367 368
dnl Check for Python
dnl -------------------------------------------------------------

AM_PATH_PYTHON([],
	[have_python="yes"],
	[have_python="no"])

if test x$have_python = xyes; then
	if test -x $PYTHON-config; then
		PYTHON_CFLAGS=`$PYTHON-config --cflags`
		PYTHON_LIBS=`$PYTHON-config --libs`
		AC_SUBST(PYTHON_CFLAGS)
		AC_SUBST(PYTHON_LIBS)
369 370 371 372 373
	elif test -x $PYTHON$PYTHON_VERSION-config; then
		PYTHON_CFLAGS=`$PYTHON$PYTHON_VERSION-config --cflags`
		PYTHON_LIBS=`$PYTHON$PYTHON_VERSION-config --libs`
		AC_SUBST(PYTHON_CFLAGS)
		AC_SUBST(PYTHON_LIBS)		
374 375
	else
		have_python="no"
376
		echo "$PYTHON-config or $PYTHON$PYTHON_VERSION-config not found - disabling python"
377 378 379 380 381
	fi
fi

AM_CONDITIONAL(HAVE_PYTHON, [test x$have_python = xyes])

382 383 384 385 386 387 388 389 390
dnl Disable packagekit support
dnl -----------------------------------
AC_ARG_ENABLE(packagekit,
  [AC_HELP_STRING([--disable-packagekit],[build without PackageKit support])],,
  [enable_packagekit=yes])
if test "x$enable_packagekit" != "xno"; then
  AC_DEFINE(ENABLE_PACKAGEKIT, 1, [define to enable PackageKit installer])
fi

391 392
dnl Setup Anjuta Library flags
dnl --------------------------
393
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)"\"'
394
LIBANJUTA_LIBS='$(top_builddir)/libanjuta/libanjuta-3.la'
395 396 397
AC_SUBST(LIBANJUTA_CFLAGS)
AC_SUBST(LIBANJUTA_LIBS)

398 399 400
dnl Setup FooCanvas Library flags
dnl --------------------------
LIBFOOCANVAS_CFLAGS='-I$(top_srcdir)'
401
LIBFOOCANVAS_LIBS='$(top_builddir)/libfoocanvas/libanjuta-foocanvas.la'
402 403 404 405 406
AC_SUBST(LIBFOOCANVAS_CFLAGS)
AC_SUBST(LIBFOOCANVAS_LIBS)

dnl Checks for Xft/XRender for foocanvas
dnl
407
AC_CHECK_LIB(Xrender, XRenderFindFormat,
408 409 410 411 412
	[AC_SUBST(RENDER_LIBS, "-lXrender -lXext")
	 AC_DEFINE(HAVE_RENDER, 1, [Define if libXrender is available.])],
	[AC_SUBST(RENDER_LIBS, "")],
	[-lXext])

413 414 415 416 417 418 419 420 421 422 423 424 425
dnl Setup Plugin directories
dnl ------------------------
anjuta_plugin_dir='$(libdir)/anjuta'
anjuta_data_dir='$(datadir)/anjuta'
anjuta_ui_dir='$(datadir)/anjuta/ui'
anjuta_glade_dir='$(datadir)/anjuta/glade'
anjuta_image_dir='$(datadir)/pixmaps/anjuta'
AC_SUBST(anjuta_plugin_dir)
AC_SUBST(anjuta_data_dir)
AC_SUBST(anjuta_ui_dir)
AC_SUBST(anjuta_glade_dir)
AC_SUBST(anjuta_image_dir)

Naba Kumar's avatar
Naba Kumar committed
426 427 428
dnl ***************************************************************************
dnl Check for marshal and enum generators
dnl ***************************************************************************
429 430 431 432 433
GLIB_GENMARSHAL="`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`"
AC_SUBST(GLIB_GENMARSHAL)
GLIB_MKENUMS="`$PKG_CONFIG --variable=glib_mkenums glib-2.0`"
AC_SUBST(GLIB_MKENUMS)

Naba Kumar's avatar
Naba Kumar committed
434 435 436
dnl ***************************************************************************
dnl Internatinalization
dnl ***************************************************************************
437 438 439 440 441
IT_PROG_INTLTOOL([0.40.1])

AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.17])

442 443
GETTEXT_PACKAGE=anjuta
AC_SUBST(GETTEXT_PACKAGE)
444
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
Naba Kumar's avatar
Naba Kumar committed
445

446 447
BISON_I18N

448 449 450
dnl ***************************************************************************
dnl Check for gtk-doc.
dnl ***************************************************************************
451
GTK_DOC_CHECK([1.4])
452

453 454 455
dnl ***************************************************************************
dnl User manual
dnl ***************************************************************************
456
YELP_HELP_INIT
457

458 459 460
dnl Define convenience macros
dnl -------------------------
dnl CHECK_HEADER_DEFINE(LABEL, HEADER [,ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ] ])
461
AC_DEFUN([CHECK_HEADER_DEFINE],
462 463 464 465 466 467 468 469 470 471 472 473 474 475
[
	AC_MSG_CHECKING("if $1 is defined in $2")
	AC_EGREP_CPP(yes,
[#include <$2>
#ifdef $1
  yes
#endif
], [
	AC_MSG_RESULT(yes)
	$3
], [
	AC_MSG_RESULT(no)
	$4
]) ])
476

Stéphane Démurget's avatar
Stéphane Démurget committed
477
dnl Checks for header files.
Johannes Schmid's avatar
Johannes Schmid committed
478
AC_CHECK_HEADERS(dirent.h fcntl.h fnmatch.h stat.h stdlib.h string.h stdint.h)
479 480
AC_CHECK_HEADERS(time.h types.h unistd.h)
AC_CHECK_HEADERS(sys/dir.h sys/stat.h sys/times.h sys/types.h)
Naba Kumar's avatar
Naba Kumar committed
481

Stéphane Démurget's avatar
Stéphane Démurget committed
482
dnl Checks for typedefs, structures, and compiler characteristics.
483

484 485 486
AC_CANONICAL_HOST
CYGWIN=no
MINGW32=no
487
MACOSX=no
488 489 490
case $host_os in
  *cygwin* ) CYGWIN=yes;;
  *mingw32* ) MINGW32=yes;;
491
  *darwin* ) MACOSX=yes;;
492 493
esac

494

495 496 497
dnl Check for bind in libsocket (needed on Solaris)
AC_CHECK_LIB(socket, bind)

498 499 500
dnl Check for function forkpty and related headers
AC_SEARCH_LIBS(forkpty, util, , AC_DEFINE(EMULATE_FORKPTY, [], [Need  to implement our own forkpty()]))
AC_CHECK_HEADERS(libutil.h util.h pty.h)
501

Stéphane Démurget's avatar
Stéphane Démurget committed
502
dnl Checks for library functions.
503 504 505 506
AC_CHECK_FUNCS(fnmatch)
AC_CHECK_FUNCS(strstr)
AC_CHECK_FUNCS(stricmp)
AC_CHECK_FUNCS(strnicmp)
507
AC_CHECK_FUNCS(getline)
508

509 510 511 512
dnl for libegg/egg-recent-model.c
AC_CHECK_DECLS([lockf])
AC_CHECK_FUNCS([lockf])

513 514 515 516 517 518
AC_CHECK_FUNCS(fgetpos, have_fgetpos=yes)

dnl SEEK_SET should be in stdio.h, but may be in unistd.h on SunOS 4.1.x
if test "$have_fgetpos" != yes ; then
    CHECK_HEADER_DEFINE(SEEK_SET, stdio.h,,
        CHECK_HEADER_DEFINE(SEEK_SET, unistd.h,,
519
            AC_DEFINE(SEEK_SET, 0, [Seek set 0])))
520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535
fi

AC_CHECK_FUNCS(mkstemp, have_mkstemp=yes)
if test "$have_mkstemp" != yes ; then
    AC_CHECK_FUNCS(chmod)
    if test "$tmpdir_specified" = yes ; then
        AC_MSG_RESULT(use of tmpnam overrides temporary directory selection)
    fi
else
    AC_MSG_CHECKING(directory to use for temporary files)
    if test -z "$enable_tmpdir" -o "$enable_tmpdir" = no -o "$enable_tmpdir" = yes ;
        then tmpdir=/tmp
        else tmpdir="$enable_tmpdir"
    fi
    if test -d $tmpdir ; then
        AC_MSG_RESULT($tmpdir)
536
        AC_DEFINE_UNQUOTED(TMPDIR, "$tmpdir", [Directory for temporary files])
537 538 539 540 541
    else
        AC_MSG_WARN($tmpdir does not exist)
    fi
fi

Naba Kumar's avatar
Naba Kumar committed
542 543 544 545 546 547 548 549 550 551 552
dnl -----------------------------
dnl Checks for FreeBSD Build
dnl -----------------------------
AC_MSG_CHECKING(if building on FreeBSD)

if test `uname -s` = "FreeBSD" ; then
        AC_MSG_RESULT(yes)
        FREEBSD_BUILD=-DFREEBSD
        AC_SUBST(FREEBSD_BUILD)
	AC_PATH_PROG(GMAKE, gmake, no)
	if test "x$GMAKE" = "xno"; then
553
		AC_MSG_ERROR(You need gmake installed to build Anjuta!)
Naba Kumar's avatar
Naba Kumar committed
554 555 556 557 558
	fi
else
        AC_MSG_RESULT(no)
	GMAKE="make"
fi
559

Naba Kumar's avatar
Naba Kumar committed
560
AC_SUBST(GMAKE)
561

562 563
dnl Checks for missing prototypes
dnl -----------------------------
564
AC_MSG_NOTICE([checking for missing prototypes...])
565

566
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))])
567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585

if test "$have_remove" = yes ; then
    CHECK_PROTO(remove, stdio.h)
else
    CHECK_PROTO(unlink, unistd.h)
fi
CHECK_PROTO(malloc, stdlib.h)
CHECK_PROTO(getenv, stdlib.h)
CHECK_PROTO(stat,   sys/stat.h)
CHECK_PROTO(lstat,  sys/stat.h)
if test "$have_fgetpos" = yes ; then
    CHECK_PROTO(fgetpos, stdio.h)
fi
if test "$have_truncate" = yes ; then
    CHECK_PROTO(truncate, unistd.h)
fi
if test "$have_ftruncate" = yes ; then
    CHECK_PROTO(ftruncate, unistd.h)
fi
Naba Kumar's avatar
Naba Kumar committed
586

Johannes Schmid's avatar
Johannes Schmid committed
587 588 589 590 591 592 593
dnl  **********************************************************
dnl  check if we have svn libraries to build subversion plugin
dnl  (stolen from kdevelop ;-)
dnl  **********************************************************

AC_MSG_CHECKING(for Subversion svn-config)
AC_ARG_WITH(subversion-dir,
594
		AS_HELP_STRING([--with-subversion-dir=DIR],[Where Subversion is installed ]),
Johannes Schmid's avatar
Johannes Schmid committed
595 596 597 598 599 600 601 602 603 604 605 606 607
		[
				SVNCONFIG="$withval/bin/svn-config"
		])

if test -z "$SVNCONFIG"; then
		_SVNCONFIG="`svn-config --prefix 2> /dev/null`"
		if test -n "$_SVNCONFIG"; then
				SVNCONFIG="$_SVNCONFIG/bin/svn-config"
		fi
fi

AC_SUBST(SVNCONFIG)
if test -x "$SVNCONFIG"; then
608
		SVNLD="`$SVNCONFIG --ldflags 2> /dev/null`"
609
		SVN_LIB="`$SVNCONFIG --libs --cflags 2> /dev/null` -lsvn_client-1 -lsvn_subr-1"
Johannes Schmid's avatar
Johannes Schmid committed
610
		dnl ugly hack for subversion svn-config problems in 0.14.x, to be removed when svn-config is fixed
611
		SVN_INCLUDE="`$SVNCONFIG --includes 2> /dev/null` -I$_SVNCONFIG/include/subversion-1/"
Johannes Schmid's avatar
Johannes Schmid committed
612 613 614
		AC_MSG_RESULT(yes)
else
		AC_MSG_RESULT(not found)
615

Johannes Schmid's avatar
Johannes Schmid committed
616 617 618 619 620 621 622 623 624 625 626 627 628 629 630
		dnl just a fallback to debian's config so that it works for me :)
		AC_ARG_WITH(svn-include,
								[[  --with-svn-include=DIR   Use the given path to the subversion headers.]],
								[
								if test "$withval" != "yes" -a "$withval" != ""; then
										SVN_INCLUDES=$withval
								fi
								])
		if test -z "$SVN_INCLUDES"; then
			SVN_INCLUDES="/usr/local/include /usr/include"
		fi
		AC_MSG_CHECKING([for Subversion headers])
		SVN_INCLUDE=""
		for VALUE in $SVN_INCLUDES ; do
				if test -f $VALUE/subversion-1/svn_types.h ; then
Naba Kumar's avatar
Naba Kumar committed
631 632 633 634
						SVN_INCLUDE=$VALUE/subversion-1
						break
				fi
				if test -f $VALUE/svn_types.h ; then
Johannes Schmid's avatar
Johannes Schmid committed
635 636 637 638 639 640 641 642 643
						SVN_INCLUDE=$VALUE
						break
				fi
		done
		if test $SVN_INCLUDE ; then
				AC_MSG_RESULT([found])
		else
				AC_MSG_RESULT([not found])
		fi
644
		SVN_LIBS="/usr/local/lib64 /usr/local/lib /usr/lib64 /usr/lib"
Johannes Schmid's avatar
Johannes Schmid committed
645 646 647 648 649 650 651 652 653 654
		AC_ARG_WITH(svn-lib,
						[[  --with-svn-lib=DIR  Use the given path to the subversion libraries.]],
						[
							if test "$withval" != "yes" -a "$withval" != ""; then
								SVN_LIBS=$withval
							fi
						])
		AC_MSG_CHECKING([for Subversion libraries])
		SVN_LIB=""
		for VALUE in $SVN_LIBS ; do
655
				if ls $VALUE/libsvn_client-1.* 1>/dev/null 2>&1; then
Johannes Schmid's avatar
Johannes Schmid committed
656 657 658 659 660 661 662 663 664 665 666
						SVN_LIB=$VALUE
						break
				fi
		done
		if test $SVN_LIB ; then
				AC_MSG_RESULT([found])
		else
				AC_MSG_RESULT([not found])
		fi
fi

667 668 669
dnl ******************************************************************
dnl Check for extra libs required by subversion.
dnl FIXME: This should actually be done by subversion and not by us.
670
dnl        See http://subversion.tigris.org/issues/show_bug.cgi?id=4435
671
dnl ******************************************************************
Johannes Schmid's avatar
Johannes Schmid committed
672

673
AC_ARG_ENABLE(plugin-subversion,
674
  AS_HELP_STRING([--disable-plugin-subversion],[Disable subversion support in Anjuta.]),
675 676 677 678 679
  [ if test "$enableval" = "no"; then
        user_disabled_subversion=1
    fi ],
  [ user_disabled_subversion=0 ] )

680 681 682 683 684 685 686 687 688 689 690 691 692 693
AC_ARG_ENABLE(neon,
	AS_HELP_STRING([--disable-neon],[Disable neon support in Subversion plugin]),
	[ if test "$enableval" = "no"; then
		user_disabled_neon=1
	  fi ],
	[ user_disabled_neon=0 ])

AC_ARG_ENABLE(serf,
	AS_HELP_STRING([--disable-serf],[Disable serf support in Subversion plugin]),
	[ if test "$enableval" = "no"; then
		user_disabled_serf=1
	  fi ],
	[ user_disabled_serf=0 ])

694 695 696 697 698 699 700 701 702 703 704 705 706
AC_MSG_CHECKING(if subversion support is disabled)
if test "$user_disabled_subversion" = 1; then
	AC_MSG_RESULT(yes)
	SVN_INCLUDE=""
	SVN_LIB=""
else
	AC_MSG_RESULT(no)
fi

if test -n "$SVN_INCLUDE" ; then
	dnl ------------------------------------
	dnl APR. Required by subversion (devel)
	dnl ------------------------------------
707 708 709 710 711
	have_atr=no
	PKG_CHECK_MODULES(APR,                            \
		apr-1, have_apr=yes, have_apr=no)
	if test x"$have_apr" = "xno"; then
		SVN_INCLUDE=""
712
	fi
713

714 715 716
	dnl -----------------------------------------
	dnl APR util. Required by subversion (devel)
	dnl------------------------------------------
717 718 719 720 721
	have_atr_util=no
	PKG_CHECK_MODULES(APR_UTILS,                            \
		apr-util-1, have_apr_util=yes, have_apr_util=no)
	if test x"$have_apr_util" = "xno"; then
		SVN_INCLUDE=""
722
	fi
723

724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742
	dnl ----------------------------------------------------------
	dnl NEON/SERF. Required by subversion (devel) for HTTP support
	dnl-----------------------------------------------------------
	# Subversion <= 1.7 relies on neon (recommended) or serf.
	# Subversion 1.8 dropped neon support and uses serf to talk
	# to HTTP servers.
	#
	# Subversion can be built without HTTP client support so neon and
	# serf aren't hard requirements. But if present on the system
	# it is reasonable to assume that Subversion is linked to them.
	if test "$user_disabled_neon" = 0; then
		have_neon=no
		PKG_CHECK_MODULES(NEON,                            \
			neon, have_neon=yes, have_neon=no)
	fi
	if test "$user_disabled_serf" = 0; then
		have_serf=no
		PKG_CHECK_MODULES(SERF,                            \
			serf-1, have_serf=yes, have_serf=no)
743
	fi
744

745 746 747
	dnl Make sure our SVN version is high enough
	dnl Eww, eww, eww, this is dirty
	AC_MSG_CHECKING([for subversion >= $SUBVERSION_REQUIRED])
748
	AC_LANG([C])
749 750 751 752 753 754 755 756 757 758 759 760
	dnl Temporarily set CFLAGS so that include dirs are found
	CFLAGS_TMP=$CFLAGS
	CFLAGS="-I$SVN_INCLUDE $APR_CFLAGS"
	AC_COMPILE_IFELSE(
		[AC_LANG_PROGRAM([[#include <svn_version.h>]],
			[[
				#if (SVN_VER_MAJOR < $SVN_MAJOR) || (SVN_VER_MINOR < $SVN_MINOR) || (SVN_VER_PATCH < $SVN_PATCH)
				#	error "Version too low"
				#endif
			]])], AC_MSG_RESULT(yes), have_svn_version=no)
	if test x"$have_svn_version" = "xno"; then
		AC_MSG_RESULT(no)
761 762
		SVN_INCLUDE=""
	fi
763
	CFLAGS=$CFLAGS_TMP
Johannes Schmid's avatar
Johannes Schmid committed
764 765
fi

766 767 768
dnl ------------------------------------------
dnl Finally prepare subversion build flags
dnl ------------------------------------------
Johannes Schmid's avatar
Johannes Schmid committed
769

770
if test -n "$SVN_INCLUDE" ; then
771
	SVN_INCLUDE="-I$SVN_INCLUDE"
772
	if test x != "x$SVN_LIB" ; then
773
	    SVN_LIB="-L$SVN_LIB $APR_LIBS $APR_UTILS_LIBS $NEON_LIBS $SERF_LIBS -lsvn_client-1 -lsvn_subr-1"
774
	else
775
	    SVN_LIB="$APR_LIBS $APR_UTILS_LIBS $NEON_LIBS $SERF_LIBS -lsvn_client-1 -lsvn_subr-1"
776
	fi
777
	SVN_CFLAGS="$APR_CFLAGS $APR_UTILS_CFLAGS $NEON_CFLAGS $SERF_CFLAGS"
778
fi
Johannes Schmid's avatar
Johannes Schmid committed
779

780
AM_CONDITIONAL(BUILD_SVN, [test -n "$SVN_INCLUDE"])
Johannes Schmid's avatar
Johannes Schmid committed
781 782 783 784
AC_SUBST(SVN_INCLUDE)
AC_SUBST(SVN_LIB)
AC_SUBST(SVN_CFLAGS)

785 786 787 788 789 790 791 792
dnl ------------------------------------------
dnl Symbol-db shared memory checks
dnl ------------------------------------------

SYMBOL_DB_SHM="/dev/shm"
user_specified_shm=0
AC_MSG_CHECKING(for symbol-db shared memory)
AC_ARG_WITH(symbol-db-shm,
793
		AS_HELP_STRING([--with-symbol-db-shm=DIR],[Where shared memory is placed ]),
794 795 796 797 798 799 800 801 802 803 804 805
		[
				user_specified_shm=1
				SYMBOL_DB_SHM="$withval"
		])
if test "$user_specified_shm" = 1; then
	AC_MSG_RESULT(yes)
else
	AC_MSG_RESULT(no)
fi

AC_SUBST(SYMBOL_DB_SHM)

806 807 808 809 810 811
dnl On Linux, need librt for shm_open/shm_unlink
bck_LIBS="$LIBS"
AC_SEARCH_LIBS(shm_open, rt, [SHM_LIBS="$LIBS"], [AC_MSG_ERROR([Failed to find library with shm_open()])])
AC_SUBST(SHM_LIBS)
LIBS="$bck_LIBS"

812 813 814 815 816
dnl Test using autotest
dnl -----------------------------
AC_CONFIG_TESTDIR(plugins/am-project/tests)
AM_MISSING_PROG([AUTOM4TE], [autom4te])

817
AC_CONFIG_FILES([
Stéphane Démurget's avatar
Stéphane Démurget committed
818 819
Makefile
po/Makefile.in
820
libanjuta/Makefile
821
libanjuta/tests/Makefile
822
libanjuta/interfaces/Makefile
823
libanjuta/libanjuta-3.0.pc
824
libanjuta/anjuta-version.h
Stéphane Démurget's avatar
Stéphane Démurget committed
825 826
src/Makefile
pixmaps/Makefile
827 828 829 830 831 832 833
pixmaps/hicolor/Makefile
pixmaps/hicolor/16x16/Makefile
pixmaps/hicolor/22x22/Makefile
pixmaps/hicolor/24x24/Makefile
pixmaps/hicolor/32x32/Makefile
pixmaps/hicolor/48x48/Makefile
pixmaps/hicolor/scalable/Makefile
Stéphane Démurget's avatar
Stéphane Démurget committed
834
data/Makefile
835
data/welcome.txt
836
data/templates/Makefile
837
doc/anjuta.1
838
doc/anjuta-launcher.1
Stéphane Démurget's avatar
Stéphane Démurget committed
839
doc/Makefile
840
scripts/Makefile
Stéphane Démurget's avatar
Stéphane Démurget committed
841
launcher/Makefile
842
plugins/Makefile
843
plugins/class-gen/Makefile
844
plugins/class-gen/templates/Makefile
845
plugins/patch/Makefile
846
plugins/document-manager/Makefile
847
plugins/document-manager/images/Makefile
848
plugins/message-view/Makefile
849
plugins/gdb/Makefile
850
plugins/gdb/images/Makefile
Johannes Schmid's avatar
Johannes Schmid committed
851
plugins/debug-manager/Makefile
852
plugins/debug-manager/images/Makefile
853
plugins/devhelp/Makefile
854
plugins/devhelp/images/Makefile
855
plugins/glade/Makefile
856
plugins/glade/images/Makefile
Maxim Ermilov's avatar
Maxim Ermilov committed
857
plugins/js-debugger/Makefile
858
plugins/file-manager/Makefile
859
plugins/file-loader/Makefile
Naba Kumar's avatar
Naba Kumar committed
860
plugins/file-wizard/Makefile
861
plugins/build-basic-autotools/Makefile
Naba Kumar's avatar
Naba Kumar committed
862
plugins/project-manager/Makefile
863
plugins/symbol-db/benchmark/Makefile
864 865
plugins/symbol-db/benchmark/symbol-db/Makefile
plugins/symbol-db/benchmark/libgda/Makefile
866
plugins/symbol-db/benchmark/sqlite/Makefile
867
plugins/symbol-db/images/Makefile
868
plugins/symbol-db/Makefile
869
plugins/symbol-db/anjuta-tags/Makefile
870
plugins/project-wizard/Makefile
871
plugins/snippets-manager/Makefile
872
plugins/cvs-plugin/Makefile
873
plugins/subversion/Makefile
874
plugins/git/Makefile
875
plugins/git/images/Makefile
876
plugins/git/tests/Makefile
877
plugins/sourceview/Makefile
878
plugins/terminal/Makefile
879
plugins/tools/Makefile
Naba Kumar's avatar
Naba Kumar committed
880
plugins/tools/scripts/Makefile
881
plugins/language-manager/Makefile
Johannes Schmid's avatar
Johannes Schmid committed
882
plugins/project-import/Makefile
883
plugins/project-wizard/templates/Makefile
Naba Kumar's avatar
Naba Kumar committed
884 885 886
plugins/project-wizard/templates/mkfile/Makefile
plugins/project-wizard/templates/mkfile/src/Makefile
plugins/project-wizard/templates/mkfile/po/Makefile
887
plugins/project-wizard/templates/minimal/Makefile
Maxim Ermilov's avatar
Maxim Ermilov committed
888 889
plugins/project-wizard/templates/js_minimal/Makefile
plugins/project-wizard/templates/js_minimal/src/Makefile
890 891
plugins/project-wizard/templates/terminal/Makefile
plugins/project-wizard/templates/terminal/src/Makefile
892
plugins/project-wizard/templates/terminal/po/Makefile
893 894 895
plugins/project-wizard/templates/cpp/Makefile
plugins/project-wizard/templates/cpp/src/Makefile
plugins/project-wizard/templates/cpp/po/Makefile
896 897
plugins/project-wizard/templates/gtk/Makefile
plugins/project-wizard/templates/gtk/src/Makefile
Jean-Noel Guiheneuf's avatar
Jean-Noel Guiheneuf committed
898
plugins/project-wizard/templates/gtk/po/Makefile
899 900 901
plugins/project-wizard/templates/gtkapplication/Makefile
plugins/project-wizard/templates/gtkapplication/src/Makefile
plugins/project-wizard/templates/gtkapplication/po/Makefile
902 903
plugins/project-wizard/templates/anjuta-plugin/Makefile
plugins/project-wizard/templates/anjuta-plugin/src/Makefile
904
plugins/project-wizard/templates/anjuta-plugin/po/Makefile
905 906 907
plugins/project-wizard/templates/gtkmm/Makefile
plugins/project-wizard/templates/gtkmm/src/Makefile
plugins/project-wizard/templates/gtkmm/po/Makefile
908 909 910 911 912 913 914 915
plugins/project-wizard/templates/gcj/Makefile
plugins/project-wizard/templates/gcj/src/Makefile
plugins/project-wizard/templates/java/Makefile
plugins/project-wizard/templates/java/src/Makefile
plugins/project-wizard/templates/java/po/Makefile
plugins/project-wizard/templates/python/Makefile
plugins/project-wizard/templates/python/src/Makefile
plugins/project-wizard/templates/python/po/Makefile
916 917 918
plugins/project-wizard/templates/pygtk/Makefile
plugins/project-wizard/templates/pygtk/src/Makefile
plugins/project-wizard/templates/pygtk/po/Makefile
919 920
plugins/project-wizard/templates/vala-gtk/Makefile
plugins/project-wizard/templates/vala-gtk/src/Makefile
921 922 923 924 925 926 927 928 929
plugins/project-wizard/templates/wxwin/Makefile
plugins/project-wizard/templates/wxwin/src/Makefile
plugins/project-wizard/templates/wxwin/po/Makefile
plugins/project-wizard/templates/xlib/Makefile
plugins/project-wizard/templates/xlib/src/Makefile
plugins/project-wizard/templates/xlib/po/Makefile
plugins/project-wizard/templates/xlib-dock/Makefile
plugins/project-wizard/templates/xlib-dock/src/Makefile
plugins/project-wizard/templates/xlib-dock/po/Makefile
930 931 932
plugins/project-wizard/templates/sdl/Makefile
plugins/project-wizard/templates/sdl/src/Makefile
plugins/project-wizard/templates/sdl/po/Makefile
933 934 935
plugins/project-wizard/templates/library/Makefile
plugins/project-wizard/templates/library/src/Makefile
plugins/project-wizard/templates/library/po/Makefile
936
plugins/project-wizard/templates/directory/Makefile
937
plugins/project-wizard/templates/m4/Makefile
938 939
plugins/project-wizard/templates/gnome-shell-extension/Makefile
plugins/project-wizard/templates/gnome-shell-extension/src/Makefile
940 941 942
plugins/project-wizard/templates/vala-library/Makefile
plugins/project-wizard/templates/vala-library/src/Makefile
plugins/project-wizard/templates/vala-library/po/Makefile
943
plugins/am-project/Makefile
944 945
plugins/am-project/tests/atlocal
plugins/am-project/tests/Makefile
946
plugins/mk-project/Makefile
947
plugins/dir-project/Makefile
948
plugins/language-support-cpp-java/Makefile
949
plugins/run-program/Makefile
950
plugins/starter/Makefile
951 952
plugins/indentation-c-style/Makefile
plugins/indentation-python-style/Makefile
Maxim Ermilov's avatar
Maxim Ermilov committed
953
plugins/language-support-js/Makefile
954
plugins/language-support-vala/Makefile
955
plugins/language-support-python/Makefile
956 957
plugins/parser-cxx/Makefile
plugins/parser-cxx/cxxparser/Makefile
958
plugins/python-loader/Makefile
959
plugins/jhbuild/Makefile
960
plugins/quick-open/Makefile
961
anjuta.desktop.in
Naba Kumar's avatar
Naba Kumar committed
962
manuals/Makefile
963 964 965
manuals/reference/Makefile
manuals/reference/libanjuta/Makefile
manuals/reference/libanjuta/version.xml
966 967
manuals/anjuta-manual/Makefile
manuals/anjuta-faqs/Makefile
968
manuals/anjuta-build-tutorial/Makefile
Naba Kumar's avatar
Naba Kumar committed
969
mime/Makefile
Stéphane Démurget's avatar
Stéphane Démurget committed
970
])
971
AC_OUTPUT
972 973 974 975 976 977 978 979
echo " "
echo "-------------------------------------------------------------------"
echo "Conditionally built plugins:"
echo "-------------------------------------------------------------------"
if [ test -n "$SVN_INCLUDE" ]; then
        echo "Building subversion plugin: ............................YES"
else
        echo "Building subversion plugin: ............................NO"
980 981
		echo "        Requires apr (>= 0.9.4); http://subversion.org"
		echo "        Requires apr-util (>= 0.9.4); http://subversion.org"
James Liggett's avatar
James Liggett committed
982 983
		echo "        Requires neon (>= 0.28.2); http://subversion.org"
		echo "        Requires subversion (>= 1.5); http://subversion.org"
984 985
fi

986
if [ test x$gladeui_found = xyes ]; then
987 988 989
       echo "Building glade plugin: .................................YES"
else
       echo "Building glade plugin: .................................NO"
990
       echo "        Requires glade-3 (>= $GLADEUI_REQUIRED)"
991
fi
992

993 994 995 996
if [ test x$devhelp_enabled = xyes ]; then
       echo "Building devhelp plugin: ...............................YES"
else
       echo "Building devhelp plugin: ...............................NO"
997
       echo "        Requires libdevhelp-3.0 (>= $LIBDEVHELP_REQUIRED)"
998
fi
999 1000 1001 1002 1003

if [ test x$terminal_enabled = xyes ]; then
       echo "Building terminal plugin: ..............................YES"
else
       echo "Building terminal plugin: ..............................NO"
1004
       echo "        Requires vte-2.91 (>= $VTE_REQUIRED)"
1005 1006
fi

1007
if [ test x$enable_vala = xyes ]; then
1008
        echo "Building Vala support: .................................YES"
1009
else
1010 1011
        echo "Building Vala support: .................................NO"
        echo "        Requires libvala (>= $VALA_REQUIRED)"
1012
fi
1013 1014 1015 1016 1017 1018
if [ test x$have_python = xyes]; then
        echo "Building python plugin loaeder: ........................YES"
else
        echo "Building python plugin loaeder: ........................NO"
        echo "        Requires python"
fi
1019
echo "-------------------------------------------------------------------"
1020
echo "AM_CFLAGS = $AM_CFLAGS"
1021
echo "AM_CXXFLAGS = $AM_CXXFLAGS"