Changeset 2298 for trunk/cf/rpLangOctave.m4
- Timestamp:
- Jul 8, 2011 3:14:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cf/rpLangOctave.m4
r2209 r2298 22 22 # Standard octave search (use the installed version of octave) 23 23 AC_DEFUN([RP_LANG_OCTAVE],[ 24 rp_with_octave="yes"25 24 AC_ARG_WITH( 26 25 [octave], 27 26 [AS_HELP_STRING([--with-octave[=DIR]], 28 27 [path of default octave compiler `mkoctfile' @<:@default=yes@:>@])], 29 [ rp_with_octave=$withval],30 [ rp_with_octave=yes])28 [], 29 [with_octave=yes]) 31 30 32 31 OCTAVE= … … 36 35 MKOCTFILE3= 37 36 38 if test "$ rp_with_octave" != "no" ; then39 if test "$ rp_with_octave" = "yes" ; then37 if test "$with_octave" != "no" ; then 38 if test "$with_octave" = "yes" ; then 40 39 AC_PATH_PROG(OCTAVE, octave) 41 40 AC_PATH_PROG(MKOCTFILE, mkoctfile) 42 41 else 43 OCTAVE=$ rp_with_octave44 MKOCTFILE=`dirname $ rp_with_octave`/mkoctfile42 OCTAVE=$with_octave 43 MKOCTFILE=`dirname $with_octave`/mkoctfile 45 44 fi 46 45 fi … … 80 79 [AS_HELP_STRING([--with-mkoctfile3[=DIR]], 81 80 [path of octave compiler `mkoctfile' @<:@default=no@:>@])], 82 [ rp_with_mkoctfile3=$withval],83 [ rp_with_mkoctfile3=no])81 [], 82 [with_mkoctfile3=no]) 84 83 85 if test "$ rp_with_mkoctfile3" != "no" ; then86 if test "$ rp_with_mkoctfile3" = "yes" ; then84 if test "$with_mkoctfile3" != "no" ; then 85 if test "$with_mkoctfile3" = "yes" ; then 87 86 AC_PATH_PROG(mkoctfile3, mkoctfile) 88 87 else 89 MKOCTFILE3=$ rp_with_mkoctfile388 MKOCTFILE3=$with_mkoctfile3 90 89 fi 91 90 OCTAVE_VERSION=`${MKOCTFILE3} --version 2>&1 | cut -d' ' -f3` … … 99 98 [AS_HELP_STRING([--with-mkoctfile2[=DIR]], 100 99 [path of octave compiler `mkoctfile' @<:@default=no@:>@])], 101 [ rp_with_mkoctfile2=$withval],102 [ rp_with_mkoctfile2=no])100 [], 101 [with_mkoctfile2=no]) 103 102 104 if test "$ rp_with_mkoctfile2" != "no" ; then105 if test "$ rp_with_mkoctfile2" = "yes" ; then103 if test "$with_mkoctfile2" != "no" ; then 104 if test "$with_mkoctfile2" = "yes" ; then 106 105 AC_PATH_PROG(mkoctfile2, mkoctfile) 107 106 else 108 MKOCTFILE2=$ rp_with_mkoctfile2107 MKOCTFILE2=$with_mkoctfile2 109 108 fi 110 109 # Have to use octave to get a version, instead of mkoctfile. … … 113 112 OCTAVE_VERSION_MAJOR=`echo ${OCTAVE_VERSION} | cut -d'.' -f1` 114 113 fi 115 116 117 echo "MKOCTFILE2 = $MKOCTFILE2"118 echo "MKOCTFILE3 = $MKOCTFILE3"119 echo "OCTAVE_VERSION_MAJOR = $OCTAVE_VERSION_MAJOR"120 echo "OCTAVE_VERSION = $OCTAVE_VERSION"121 114 ])
Note: See TracChangeset
for help on using the changeset viewer.