Changeset 1973 for branches/blt4/configure.in
- Timestamp:
- Dec 2, 2010, 9:47:26 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4/configure.in
r1972 r1973 114 114 AC_SUBST(ENABLE_GUI) 115 115 116 with_tclsh="yes"116 rp_with_tclsh="yes" 117 117 AC_ARG_WITH( 118 118 [tclsh], … … 120 120 [location of tclsh @<:@default=yes@:>@])], 121 121 [], 122 [ with_tclsh=yes])122 [rp_with_tclsh=$withval]) 123 123 124 124 TCLSH= 125 if test "$ with_tclsh" != "no" ; then125 if test "${rp_with_tclsh}" != "no" ; then 126 126 AC_MSG_CHECKING([for tclsh]) 127 if test -x "$ with_tclsh/bin/tclsh"127 if test -x "${rp_with_tclsh}/bin/tclsh" 128 128 then 129 echo Found tclsh in $ with_tclsh/bin/tclsh130 TCLSH="$ with_tclsh/bin/tclsh"129 echo Found tclsh in ${rp_with_tclsh}/bin/tclsh 130 TCLSH="${rp_with_tclsh}/bin/tclsh" 131 131 else 132 if test -x "$ with_tclsh"132 if test -x "${rp_with_tclsh}" 133 133 then 134 echo Found tclsh in $with_tclsh135 TCLSH="$ with_tclsh"134 echo "Found tclsh in ${rp_with_tclsh}" 135 TCLSH="${rp_with_tclsh}" 136 136 else 137 137 if test -x "${exec_prefix}/bin/tclsh" … … 172 172 TCL_INC_SPEC="$TCL_INCLUDE_SPEC" 173 173 174 if test "x$ with_tcllib" != "x" ; then175 tclconfig="${ with_tcllib}/tclConfig.sh"174 if test "x$rp_with_tcllib" != "x" ; then 175 tclconfig="${rp_with_tcllib}/tclConfig.sh" 176 176 if test -f "$tclconfig" ; then 177 177 . $tclconfig 178 178 fi 179 TCL_LIB_SPEC="-L${ with_tcllib} -ltcl${TCL_VERSION}"180 fi 181 if test "x$ with_tclinclude" != "x" ; then182 TCL_INC_SPEC="-I${ with_tclinclude}"179 TCL_LIB_SPEC="-L${rp_with_tcllib} -ltcl${TCL_VERSION}" 180 fi 181 if test "x$rp_with_tclinclude" != "x" ; then 182 TCL_INC_SPEC="-I${rp_with_tclinclude}" 183 183 fi 184 184 … … 191 191 [AS_HELP_STRING([--with-vtk[=DIR]], 192 192 [location of vtk library @<:@default=yes@:>@])], 193 [ with_vtk=$withval], [with_vtk=yes])193 [rp_with_vtk=$withval], [rp_with_vtk=yes]) 194 194 195 195 AC_MSG_CHECKING([for vtk]) 196 196 VTKDIR="" 197 197 198 if test "$ with_vtk" != "no" ; then199 if test "$ with_vtk" = "yes" ; then198 if test "$rp_with_vtk" != "no" ; then 199 if test "$rp_with_vtk" = "yes" ; then 200 200 for path in \ 201 201 $libdir \ … … 223 223 [AS_HELP_STRING([--with-matlab[=DIR]], 224 224 [location of matlab and mex compiler @<:@default=yes@:>@])], 225 [ with_matlab=$withval],226 [ with_matlab=yes])225 [rp_with_matlab=$withval], 226 [rp_with_matlab=yes]) 227 227 228 228 MCC="" … … 231 231 MEXEXT="" 232 232 MATLAB= 233 if test "$ with_matlab" != "no" ; then234 if test "$ with_matlab" = "yes" ; then233 if test "$rp_with_matlab" != "no" ; then 234 if test "$rp_with_matlab" = "yes" ; then 235 235 AC_PATH_PROG(MATLAB, matlab) 236 236 else 237 AC_PATH_PROG(MATLAB, matlab, [], [${ with_matlab}/bin:${with_matlab}])237 AC_PATH_PROG(MATLAB, matlab, [], [${rp_with_matlab}/bin:${rp_with_matlab}]) 238 238 fi 239 239 fi … … 272 272 [AS_HELP_STRING([--with-octave[=DIR]], 273 273 [location of octave compiler MKOCTFILE @<:@default=yes@:>@])], 274 [ with_octave=$withval],275 [ with_octave=yes])274 [rp_with_octave=$withval], 275 [rp_with_octave=yes]) 276 276 277 277 OCTAVE= … … 283 283 MKOCTFILE2= 284 284 MKOCTFILE3= 285 if test "$ with_octave" != "no" ; then285 if test "$rp_with_octave" != "no" ; then 286 286 AC_MSG_CHECKING([for octave and mkoctfile]) 287 if test "$ with_octave" = "yes" ; then287 if test "$rp_with_octave" = "yes" ; then 288 288 AC_PATH_PROG(OCTAVE, octave) 289 289 AC_PATH_PROG(MKOCTFILE, mkoctfile) 290 290 else 291 MKOCTFILE=$ with_octave292 OCTAVE=$ with_octave291 MKOCTFILE=$rp_with_octave 292 OCTAVE=$rp_with_octave 293 293 fi 294 294 fi … … 311 311 [AS_HELP_STRING([--with-octave2[=DIR]], 312 312 [location of octave compiler MKOCTFILE @<:@default=no@:>@])], 313 [ with_octave2=$withval],314 [ with_octave2=no])315 316 if test "$ with_octave2" != "no" ; then317 if test "$ with_octave2" = "yes" ; then313 [rp_with_octave2=$withval], 314 [rp_with_octave2=no]) 315 316 if test "$rp_with_octave2" != "no" ; then 317 if test "$rp_with_octave2" = "yes" ; then 318 318 AC_MSG_CHECKING([for octave and mkoctfile]) 319 319 AC_PATH_PROG(octave2, octave) 320 320 AC_PATH_PROG(mkoctfile2, mkoctfile) 321 321 else 322 octave2=$ with_octave2323 mkoctfile2=`dirname $ with_octave2`/mkoctfile322 octave2=$rp_with_octave2 323 mkoctfile2=`dirname $rp_with_octave2`/mkoctfile 324 324 fi 325 325 fi … … 339 339 [AS_HELP_STRING([--with-octave3[=DIR]], 340 340 [location of octave compiler MKOCTFILE @<:@default=no@:>@])], 341 [ with_octave3=$withval],342 [ with_octave3=no])343 344 echo with_octave3=$with_octave3345 if test "$ with_octave3" != "no" ; then346 if test "$ with_octave3" = "yes" ; then341 [rp_with_octave3=$withval], 342 [rp_with_octave3=no]) 343 344 echo rp_with_octave3=$rp_with_octave3 345 if test "$rp_with_octave3" != "no" ; then 346 if test "$rp_with_octave3" = "yes" ; then 347 347 AC_MSG_CHECKING([for octave and mkoctfile]) 348 348 AC_PATH_PROG(octave3, octave) 349 349 AC_PATH_PROG(mkoctfile3, mkoctfile) 350 350 else 351 octave3=$ with_octave3352 mkoctfile3=`dirname $ with_octave3`/mkoctfile351 octave3=$rp_with_octave3 352 mkoctfile3=`dirname $rp_with_octave3`/mkoctfile 353 353 fi 354 354 fi … … 362 362 echo version_major=$version_major 363 363 if test "$version_major" = "3" ; then 364 OCTAVE3=$ with_octave3364 OCTAVE3=$rp_with_octave3 365 365 MKOCTFILE3=$mkoctfile3 366 366 fi … … 380 380 [AS_HELP_STRING([--with-perl[=DIR]], [location of perl @<:@default=yes@:>@])], 381 381 [], 382 [ with_perl=yes])382 [rp_with_perl=yes]) 383 383 384 384 PERL= … … 393 393 PERL_VERSION_RV= 394 394 PERL_LIBSPEC= 395 if test "$ with_perl" != "no" ; then395 if test "$rp_with_perl" != "no" ; then 396 396 AC_MSG_CHECKING([for perl]) 397 if test "$ with_perl" != "yes" ; then398 AC_PATH_PROG(PERL, perl, [], [$ with_perl/bin:$with_perl])397 if test "$rp_with_perl" != "yes" ; then 398 AC_PATH_PROG(PERL, perl, [], [$rp_with_perl/bin:$rp_with_perl]) 399 399 else 400 400 AC_PATH_PROG(PERL, perl) … … 448 448 [AS_HELP_STRING([--with-python[=DIR]],[location of python @<:@default=yes@:>@])], 449 449 [], 450 [ with_python=yes])451 452 if test "$ with_python" != "no" ; then450 [rp_with_python=yes]) 451 452 if test "$rp_with_python" != "no" ; then 453 453 AC_MSG_CHECKING([for python]) 454 if test -x "$ with_python/bin/python"; then455 echo Found python in $ with_python/bin/python456 PYTHON="$ with_python/bin/python"457 elif test -x "$ with_python"; then458 echo Found python in $ with_python459 PYTHON="$ with_python"454 if test -x "$rp_with_python/bin/python"; then 455 echo Found python in $rp_with_python/bin/python 456 PYTHON="$rp_with_python/bin/python" 457 elif test -x "$rp_with_python"; then 458 echo Found python in $rp_with_python 459 PYTHON="$rp_with_python" 460 460 else 461 461 AC_PATH_PROG(PYTHON, python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5) … … 466 466 fi 467 467 if test "x${PYTHON_VERSION}" != "x"; then 468 if test -r $ with_python/include/python$PYTHON_VERSION/Python.h -a \469 -d $ with_python/lib/python$PYTHON_VERSION/site-packages; then470 PYTHON_INCLUDES=$ with_python/include/python$PYTHON_VERSION471 PYTHON_SITE_PACKAGES=$ with_python/lib/python$PYTHON_VERSION/site-packages468 if test -r $rp_with_python/include/python$PYTHON_VERSION/Python.h -a \ 469 -d $rp_with_python/lib/python$PYTHON_VERSION/site-packages; then 470 PYTHON_INCLUDES=$rp_with_python/include/python$PYTHON_VERSION 471 PYTHON_SITE_PACKAGES=$rp_with_python/lib/python$PYTHON_VERSION/site-packages 472 472 else 473 473 if test -r $prefix/include/python$PYTHON_VERSION/Python.h; then … … 487 487 fi 488 488 fi 489 if test "x$ with_python" != "x" ; then489 if test "x$rp_with_python" != "x" ; then 490 490 pythondir='$(PYTHON_SITE_PACKAGES)' 491 491 else … … 538 538 AC_SUBST(HAVE_PYTHON_DISTUTILS) 539 539 540 r appture_with_ruby="yes"540 rp_with_ruby="yes" 541 541 542 542 RUBY="" 543 543 RUBY_DEV_PKG="no" 544 544 545 AC_ARG_WITH(ruby, 546 AS_HELP_STRING([--with-ruby=PATH], [absolute path to ruby executable]), 547 [rappture_with_ruby=$with_val]) 548 if test "${rappture_with_ruby}" != "no" ; then 549 if test "${rappture_with_ruby}" = "yes" ; then 545 AC_ARG_WITH( 546 [ruby], 547 [AS_HELP_STRING([--with-ruby=DIR], [location of ruby @<:@default=yes@:>@])], 548 [rp_with_ruby=$withval]) 549 550 if test "${rp_with_ruby}" != "no" ; then 551 if test "${rp_with_ruby}" = "yes" ; then 550 552 AC_PATH_PROG(RUBY, ruby) 551 553 else 552 AC_PATH_PROG(RUBY, ruby, [], 553 [${rappture_with_ruby}/bin/ruby:${rappture_with_ruby}]) 554 AC_PATH_PROG(RUBY, ruby, [], [${rp_with_ruby}/bin:${rp_with_ruby}]) 554 555 fi 555 556 fi
Note: See TracChangeset
for help on using the changeset viewer.