Changeset 2180 for trunk/configure.in


Ignore:
Timestamp:
Mar 31, 2011 11:20:27 AM (13 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.in

    r2177 r2180  
    66
    77with_tclsh=yes
     8rp_with_tclsh="yes"
     9rp_with_mkoctfile2="no"
     10rp_with_mkoctfile3="no"
     11rp_with_octave="yes"
     12rp_with_vtk="yes"
     13rp_with_matlab="yes"
     14rp_with_perl="yes"
     15rp_with_python="yes"
     16rp_with_ruby="yes"
     17rp_with_java="yes"
     18with_install="yes"
    819
    920#------------------------------------------------------------------------
     
    143154
    144155
    145 rp_with_tclsh="yes"
    146156AC_ARG_WITH(
    147157    [tclsh],
     
    252262AC_SUBST(MEXEXT)
    253263
     264#
     265# Octave variables:
     266#
     267#       OCTAVE          Path to default octave executable.  Will use
     268#                       to determine the version os
     269#       MKOCTFILE       Path to the default octave
     270#
     271
    254272# Standard octave search (use the installed version of octave)
    255273AC_ARG_WITH(
    256274    [octave],
    257275    [AS_HELP_STRING([--with-octave[=DIR]],
    258         [location of octave compiler MKOCTFILE @<:@default=yes@:>@])],
     276        [path of default octave compiler `mkoctfile' @<:@default=yes@:>@])],
    259277    [rp_with_octave=$withval],
    260278    [rp_with_octave=yes])
    261279
    262280OCTAVE=
    263 OCTAVE2=
    264 OCTAVE3=
    265281OCTAVE_VERSION=
    266282OCTAVE_VERSION_MAJOR=
    267 MKOCTFILE=
    268283MKOCTFILE2=
    269284MKOCTFILE3=
     285
    270286if test "$rp_with_octave" != "no" ; then
    271287  if test "$rp_with_octave" = "yes" ; then
     
    278294fi
    279295
    280 echo MKOCTFILE=$MKOCTFILE
    281 echo OCTAVE=$OCTAVE
    282 
    283296if test "x${OCTAVE}" != "x" ; then
    284297  OCTAVE_VERSION=`${OCTAVE} -v | grep version | cut -d' ' -f4`
     
    294307fi
    295308
    296 # Check if octave2 was designated *in addition* to the installed version.
    297 AC_ARG_WITH(
    298     [octave2],
    299     [AS_HELP_STRING([--with-octave2[=DIR]],
    300         [location of octave compiler MKOCTFILE @<:@default=no@:>@])],
    301     [rp_with_octave2=$withval],
    302     [rp_with_octave2=no])
    303 
    304 if test "$rp_with_octave2" != "no" ; then
    305   if test "$rp_with_octave2" = "yes" ; then
    306     AC_PATH_PROG(octave2, octave)
     309# Check if mkoctfile2 was designated *in addition* to the installed version.
     310AC_ARG_WITH(
     311    [mkoctfile2],
     312    [AS_HELP_STRING([--with-mkoctfile2[=DIR]],
     313        [path of octave compiler `mkoctfile' @<:@default=no@:>@])],
     314    [rp_with_mkoctfile2=$withval],
     315    [rp_with_mkoctfile2=no])
     316
     317if test "$rp_with_mkoctfile2" != "no" ; then
     318  if test "$rp_with_mkoctfile2" = "yes" ; then
    307319    AC_PATH_PROG(mkoctfile2, mkoctfile)
    308320  else
    309     OCTAVE2=$rp_with_octave2
    310     MKOCTFILE2=`dirname $rp_with_octave2`/mkoctfile
    311   fi
     321    MKOCTFILE2=$rp_with_mkoctfile2
     322  fi
     323  OCTAVE_VERSION=`${MKOCTFILE2} --version 2>&1 | cut -d' ' -f3`
     324  OCTAVE_VERSION_MAJOR=`echo ${OCTAVE_VERSION} | cut -d'.' -f1`
    312325fi
    313326
    314327# Check if octave3 was designated *in addition* to the installed version.
    315328AC_ARG_WITH(
    316     [octave3],
    317     [AS_HELP_STRING([--with-octave3[=DIR]],
    318         [location of octave compiler MKOCTFILE @<:@default=no@:>@])],
    319     [rp_with_octave3=$withval],
    320     [rp_with_octave3=no])
    321 
    322 if test "$rp_with_octave3" != "no" ; then
    323   if test "$rp_with_octave3" = "yes" ; then
    324     AC_PATH_PROG(octave3, octave)
     329    [mkoctfile3],
     330    [AS_HELP_STRING([--with-mkoctfile3[=DIR]],
     331        [path of octave compiler `mkoctfile' @<:@default=no@:>@])],
     332    [rp_with_mkoctfile3=$withval],
     333    [rp_with_mkoctfile3=no])
     334
     335if test "$rp_with_mkoctfile3" != "no" ; then
     336  if test "$rp_with_mkoctfile3" = "yes" ; then
    325337    AC_PATH_PROG(mkoctfile3, mkoctfile)
    326338  else
    327     OCTAVE3=$rp_with_octave3
    328     MKOCTFILE3=`dirname $rp_with_octave3`/mkoctfile
    329   fi
    330 fi
    331 
    332 echo MKOCTFILE2=$MKOCTFILE2
    333 echo OCTAVE2=$OCTAVE2
    334 echo MKOCTFILE3=$MKOCTFILE3
    335 echo OCTAVE3=$OCTAVE3
    336 
    337 AC_SUBST(OCTAVE2)
    338 AC_SUBST(OCTAVE3)
     339    MKOCTFILE3=$rp_with_mkoctfile3
     340  fi
     341  OCTAVE_VERSION=`${MKOCTFILE3} --version 2>&1 | cut -d' ' -f3`
     342  OCTAVE_VERSION_MAJOR=`echo ${OCTAVE_VERSION} | cut -d'.' -f1`
     343fi
     344
     345echo "MKOCTFILE2 = $MKOCTFILE2"
     346echo "MKOCTFILE3 = $MKOCTFILE3"
     347echo "OCTAVE_VERSION_MAJOR = $OCTAVE_VERSION_MAJOR"
     348echo "OCTAVE_VERSION = $OCTAVE_VERSION"
     349
    339350AC_SUBST(OCTAVE)
    340351AC_SUBST(OCTAVE_VERSION)
    341352AC_SUBST(OCTAVE_VERSION_MAJOR)
    342 AC_SUBST(MKOCTFILE)
    343353AC_SUBST(MKOCTFILE2)
    344354AC_SUBST(MKOCTFILE3)
     
    512522AC_SUBST(RUBY_PLATFORM)
    513523
    514 rp_with_java="yes"
    515524JAVA=""
    516525JAVAH=""
Note: See TracChangeset for help on using the changeset viewer.