annotate src/libsndfile-1.0.27/M4/mkoctfile_version.m4 @ 148:b4bfdf10c4b3

Update Win64 capnp builds to v0.6
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 22 May 2017 18:56:49 +0100
parents cd6cdf86811e
children
rev   line source
cannam@125 1 dnl @synopsis OCTAVE_MKOCTFILE_VERSION
cannam@125 2 dnl
cannam@125 3 dnl Find the version of mkoctfile.
cannam@125 4 dnl @version 1.0 Aug 23 2007
cannam@125 5 dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
cannam@125 6 dnl
cannam@125 7 dnl Permission to use, copy, modify, distribute, and sell this file for any
cannam@125 8 dnl purpose is hereby granted without fee, provided that the above copyright
cannam@125 9 dnl and this permission notice appear in all copies. No representations are
cannam@125 10 dnl made about the suitability of this software for any purpose. It is
cannam@125 11 dnl provided "as is" without express or implied warranty.
cannam@125 12 dnl
cannam@125 13
cannam@125 14 AC_DEFUN([OCTAVE_MKOCTFILE_VERSION],
cannam@125 15 [
cannam@125 16
cannam@125 17
cannam@125 18 AC_ARG_WITH(mkoctfile,
cannam@125 19 AC_HELP_STRING([--with-mkoctfile], [choose the mkoctfile version]),
cannam@125 20 [ with_mkoctfile=$withval ])
cannam@125 21
cannam@125 22 test -z "$with_mkoctfile" && with_mkoctfile=mkoctfile
cannam@125 23
cannam@125 24 AC_CHECK_PROG(HAVE_MKOCTFILE,$with_mkoctfile,yes,no)
cannam@125 25
cannam@125 26 if test "x$ac_cv_prog_HAVE_MKOCTFILE" = "xyes" ; then
cannam@125 27 MKOCTFILE=$with_mkoctfile
cannam@125 28
cannam@125 29 AC_MSG_CHECKING([for version of $MKOCTFILE])
cannam@125 30 MKOCTFILE_VERSION=`$with_mkoctfile --version 2>&1 | sed 's/mkoctfile, version //g'`
cannam@125 31 AC_MSG_RESULT($MKOCTFILE_VERSION)
cannam@125 32 fi
cannam@125 33
cannam@125 34 AC_SUBST(MKOCTFILE)
cannam@125 35 AC_SUBST(MKOCTFILE_VERSION)
cannam@125 36
cannam@125 37 ])# OCTAVE_MKOCTFILE_VERSION
cannam@125 38