1368
1368
AC_SUBST([am__untar])
1369
1369
]) # _AM_PROG_TAR
1371
# Autoconf support for the Vala compiler
1373
# Copyright (C) 2008, 2009 Free Software Foundation, Inc.
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.
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.
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.])])])])
1371
1401
m4_include([m4/compiler.m4])
1372
1402
m4_include([m4/gtk-doc.m4])
1373
1403
m4_include([m4/introspection.m4])