~ubuntu-branches/ubuntu/wily/telepathy-glib/wily

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Simon McVittie
  • Date: 2010-08-17 12:22:44 UTC
  • mfrom: (1.6.9 upstream)
  • mto: (35.1.6 maverick)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: james.westby@ubuntu.com-20100817122244-5mj9z00ss3bmibe7
Tags: 0.11.13-1
New upstream version (new API, ABI)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1368
1368
AC_SUBST([am__untar])
1369
1369
]) # _AM_PROG_TAR
1370
1370
 
 
1371
# Autoconf support for the Vala compiler
 
1372
 
 
1373
# Copyright (C) 2008, 2009 Free Software Foundation, Inc.
 
1374
#
 
1375
# This file is free software; the Free Software Foundation
 
1376
# gives unlimited permission to copy and/or distribute it,
 
1377
# with or without modifications, as long as this notice is preserved.
 
1378
 
 
1379
# serial 4
 
1380
 
 
1381
# Check whether the Vala compiler exists in `PATH'. If it is found, the
 
1382
# variable VALAC is set. Optionally a minimum release number of the
 
1383
# compiler can be requested.
 
1384
#
 
1385
# AM_PROG_VALAC([MINIMUM-VERSION])
 
1386
# --------------------------------
 
1387
AC_DEFUN([AM_PROG_VALAC],
 
1388
[AC_PATH_PROG([VALAC], [valac], [])
 
1389
 AS_IF([test -z "$VALAC"],
 
1390
   [AC_MSG_WARN([No Vala compiler found.  You will not be able to compile .vala source files.])],
 
1391
   [AS_IF([test -n "$1"],
 
1392
      [AC_MSG_CHECKING([$VALAC is at least version $1])
 
1393
       am__vala_version=`$VALAC --version | sed 's/Vala  *//'`
 
1394
       AS_VERSION_COMPARE([$1], ["$am__vala_version"],
 
1395
         [AC_MSG_RESULT([yes])],
 
1396
         [AC_MSG_RESULT([yes])],
 
1397
         [AC_MSG_RESULT([no])
 
1398
          AC_MSG_ERROR([Vala $1 not found.])])])])
 
1399
])
 
1400
 
1371
1401
m4_include([m4/compiler.m4])
1372
1402
m4_include([m4/gtk-doc.m4])
1373
1403
m4_include([m4/introspection.m4])