Changeset 2180 for trunk/configure.in
- Timestamp:
- Mar 31, 2011 11:20:27 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.in
r2177 r2180 6 6 7 7 with_tclsh=yes 8 rp_with_tclsh="yes" 9 rp_with_mkoctfile2="no" 10 rp_with_mkoctfile3="no" 11 rp_with_octave="yes" 12 rp_with_vtk="yes" 13 rp_with_matlab="yes" 14 rp_with_perl="yes" 15 rp_with_python="yes" 16 rp_with_ruby="yes" 17 rp_with_java="yes" 18 with_install="yes" 8 19 9 20 #------------------------------------------------------------------------ … … 143 154 144 155 145 rp_with_tclsh="yes"146 156 AC_ARG_WITH( 147 157 [tclsh], … … 252 262 AC_SUBST(MEXEXT) 253 263 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 254 272 # Standard octave search (use the installed version of octave) 255 273 AC_ARG_WITH( 256 274 [octave], 257 275 [AS_HELP_STRING([--with-octave[=DIR]], 258 [ location of octave compiler MKOCTFILE@<:@default=yes@:>@])],276 [path of default octave compiler `mkoctfile' @<:@default=yes@:>@])], 259 277 [rp_with_octave=$withval], 260 278 [rp_with_octave=yes]) 261 279 262 280 OCTAVE= 263 OCTAVE2=264 OCTAVE3=265 281 OCTAVE_VERSION= 266 282 OCTAVE_VERSION_MAJOR= 267 MKOCTFILE=268 283 MKOCTFILE2= 269 284 MKOCTFILE3= 285 270 286 if test "$rp_with_octave" != "no" ; then 271 287 if test "$rp_with_octave" = "yes" ; then … … 278 294 fi 279 295 280 echo MKOCTFILE=$MKOCTFILE281 echo OCTAVE=$OCTAVE282 283 296 if test "x${OCTAVE}" != "x" ; then 284 297 OCTAVE_VERSION=`${OCTAVE} -v | grep version | cut -d' ' -f4` … … 294 307 fi 295 308 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. 310 AC_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 317 if test "$rp_with_mkoctfile2" != "no" ; then 318 if test "$rp_with_mkoctfile2" = "yes" ; then 307 319 AC_PATH_PROG(mkoctfile2, mkoctfile) 308 320 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` 312 325 fi 313 326 314 327 # Check if octave3 was designated *in addition* to the installed version. 315 328 AC_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 335 if test "$rp_with_mkoctfile3" != "no" ; then 336 if test "$rp_with_mkoctfile3" = "yes" ; then 325 337 AC_PATH_PROG(mkoctfile3, mkoctfile) 326 338 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` 343 fi 344 345 echo "MKOCTFILE2 = $MKOCTFILE2" 346 echo "MKOCTFILE3 = $MKOCTFILE3" 347 echo "OCTAVE_VERSION_MAJOR = $OCTAVE_VERSION_MAJOR" 348 echo "OCTAVE_VERSION = $OCTAVE_VERSION" 349 339 350 AC_SUBST(OCTAVE) 340 351 AC_SUBST(OCTAVE_VERSION) 341 352 AC_SUBST(OCTAVE_VERSION_MAJOR) 342 AC_SUBST(MKOCTFILE)343 353 AC_SUBST(MKOCTFILE2) 344 354 AC_SUBST(MKOCTFILE3) … … 512 522 AC_SUBST(RUBY_PLATFORM) 513 523 514 rp_with_java="yes"515 524 JAVA="" 516 525 JAVAH=""
Note: See TracChangeset
for help on using the changeset viewer.