~didrocks/ubuntuone-client/use_result_var

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Rodney Dawes
  • Date: 2011-02-11 16:18:11 UTC
  • mto: This revision was merged to the branch mainline in revision 67.
  • Revision ID: james.westby@ubuntu.com-20110211161811-n18dj9lde7dxqjzr
Tags: upstream-1.5.4
ImportĀ upstreamĀ versionĀ 1.5.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1496
1496
AC_SUBST([am__untar])
1497
1497
]) # _AM_PROG_TAR
1498
1498
 
 
1499
# Autoconf support for the Vala compiler
 
1500
 
 
1501
# Copyright (C) 2008, 2009 Free Software Foundation, Inc.
 
1502
#
 
1503
# This file is free software; the Free Software Foundation
 
1504
# gives unlimited permission to copy and/or distribute it,
 
1505
# with or without modifications, as long as this notice is preserved.
 
1506
 
 
1507
# serial 4
 
1508
 
 
1509
# Check whether the Vala compiler exists in `PATH'. If it is found, the
 
1510
# variable VALAC is set. Optionally a minimum release number of the
 
1511
# compiler can be requested.
 
1512
#
 
1513
# AM_PROG_VALAC([MINIMUM-VERSION])
 
1514
# --------------------------------
 
1515
AC_DEFUN([AM_PROG_VALAC],
 
1516
[AC_PATH_PROG([VALAC], [valac], [])
 
1517
 AS_IF([test -z "$VALAC"],
 
1518
   [AC_MSG_WARN([No Vala compiler found.  You will not be able to compile .vala source files.])],
 
1519
   [AS_IF([test -n "$1"],
 
1520
      [AC_MSG_CHECKING([$VALAC is at least version $1])
 
1521
       am__vala_version=`$VALAC --version | sed 's/Vala  *//'`
 
1522
       AS_VERSION_COMPARE([$1], ["$am__vala_version"],
 
1523
         [AC_MSG_RESULT([yes])],
 
1524
         [AC_MSG_RESULT([yes])],
 
1525
         [AC_MSG_RESULT([no])
 
1526
          AC_MSG_ERROR([Vala $1 not found.])])])])
 
1527
])
 
1528
 
1499
1529
m4_include([m4/gtk-doc.m4])
1500
1530
m4_include([m4/intltool.m4])
1501
1531
m4_include([m4/libtool.m4])