annotate src/libsndfile-1.0.25/M4/mkoctfile_version.m4 @ 94:d278df1123f9

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