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