Chris@0: dnl @synopsis OCTAVE_MKOCTFILE_VERSION Chris@0: dnl Chris@0: dnl Find the version of mkoctfile. Chris@0: dnl @version 1.0 Aug 23 2007 Chris@0: dnl @author Erik de Castro Lopo Chris@0: dnl Chris@0: dnl Permission to use, copy, modify, distribute, and sell this file for any Chris@0: dnl purpose is hereby granted without fee, provided that the above copyright Chris@0: dnl and this permission notice appear in all copies. No representations are Chris@0: dnl made about the suitability of this software for any purpose. It is Chris@0: dnl provided "as is" without express or implied warranty. Chris@0: dnl Chris@0: Chris@0: AC_DEFUN([OCTAVE_MKOCTFILE_VERSION], Chris@0: [ Chris@0: Chris@0: Chris@0: AC_ARG_WITH(mkoctfile, Chris@0: AC_HELP_STRING([--with-mkoctfile], [choose the mkoctfile version]), Chris@0: [ with_mkoctfile=$withval ]) Chris@0: Chris@0: test -z "$with_mkoctfile" && with_mkoctfile=mkoctfile Chris@0: Chris@0: AC_CHECK_PROG(HAVE_MKOCTFILE,$with_mkoctfile,yes,no) Chris@0: Chris@0: if test "x$ac_cv_prog_HAVE_MKOCTFILE" = "xyes" ; then Chris@0: MKOCTFILE=$with_mkoctfile Chris@0: Chris@0: AC_MSG_CHECKING([for version of $MKOCTFILE]) Chris@0: MKOCTFILE_VERSION=`$with_mkoctfile --version 2>&1 | sed 's/mkoctfile, version //g'` Chris@0: AC_MSG_RESULT($MKOCTFILE_VERSION) Chris@0: fi Chris@0: Chris@0: AC_SUBST(MKOCTFILE) Chris@0: AC_SUBST(MKOCTFILE_VERSION) Chris@0: Chris@0: ])# OCTAVE_MKOCTFILE_VERSION Chris@0: