- Timestamp:
- Jul 30, 2006, 10:12:56 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile.in
r497 r498 1 all: rplib bindings 2 install: install_rplib install_bindings install_examples 3 1 4 ########################################################################### 2 5 # Makefile - build and install all Rappture libraries 3 6 ############################################################################# 4 7 8 5 9 rplib: 6 10 set -x; 7 cd src; make clean; make librappture; cd - 8 # make install 11 cd src; make clean; make librappture; 12 13 install_rplib: 14 set -x; 15 cd src; make install 9 16 10 17 bindings: … … 15 22 cd - 16 23 # make RpTcl; 17 make RpPython; 18 make RpPerl; 24 make build_python_bindings; 25 make build_perl_bindings; 26 27 install_bindings: 19 28 20 29 ############################################################################# … … 29 38 cd examples/c-example; make clean; make; cd - 30 39 40 install_examples: examples 41 31 42 ############################################################################# 32 43 33 RpPython:44 build_python_bindings: 34 45 set -x; 35 46 cd python; \ … … 38 49 --library-dirs=@prefix@/lib \ 39 50 --include-dirs=@prefix@/include/core \ 40 install \ 41 --prefix=@prefix@ \ 51 build 42 52 43 RpPerl: 53 install_python_bindings: build_python_bindings 54 set -x; 55 cd python; \ 56 @PYTHON@ setup.py install --prefix=@prefix@ 57 58 build_perl_bindings: 44 59 set -x; 45 60 cd perl; \ 46 61 @PERL@ Makefile.PL PREFIX=@prefix@; \ 47 make; \ 48 make test; \ 49 make install; 62 make; make test; 63 64 install_perl_bindings: build_perl_bindings 65 set -x; 66 cd perl; make install; 50 67 51 68 clean: -
trunk/configure
r497 r498 310 310 #endif" 311 311 312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 PERL PYTHON pythondir PYTHON_VERSION PYTHON_INCLUDES PYTHON_SITE_PACKAGES VERSION RP_BASE LIBOBJS LTLIBOBJS'312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 MEX MKOCTFILE PERL PYTHON pythondir PYTHON_VERSION PYTHON_INCLUDES PYTHON_SITE_PACKAGES VERSION RP_BASE LIBOBJS LTLIBOBJS' 313 313 ac_subst_files='' 314 314 … … 861 861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 862 862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 863 --with-matlab=DIR Build Matlab bindings if MEX compiler is found 864 --with-octave=DIR Build Octave bindings if MKOCTFILE compiler is found 863 865 --with-perl=DIR Build Perl bindings if found 864 866 --with-python=DIR Build Python bindings if found … … 4239 4241 4240 4242 # Provide some information about the compiler. 4241 echo "$as_me:424 1:" \4243 echo "$as_me:4243:" \ 4242 4244 "checking for Fortran 77 compiler version" >&5 4243 4245 ac_compiler=`set X $ac_compile; echo $2` … … 4383 4385 4384 4386 4385 4386 # Check whether --with-perl or --without-perl was given. 4387 if test "${with_perl+set}" = set; then 4388 withval="$with_perl" 4387 # Check whether --with-matlab or --without-matlab was given. 4388 if test "${with_matlab+set}" = set; then 4389 withval="$with_matlab" 4389 4390 4390 4391 fi; 4391 # Extract the first word of "perl", so it can be a program name with args. 4392 set dummy perl; ac_word=$2 4392 if test "$with_matlab" != "no" ; then 4393 if test -x "$with_matlab/bin/mex" 4394 then 4395 echo Found matlab in $with_matlab/bin/mex 4396 MEX="$with_matlab/bin/mex" 4397 else 4398 if test -x "$with_matlab" 4399 then 4400 echo Found mex in $with_matlab 4401 MEX="$with_matlab" 4402 else 4403 # Extract the first word of "mex", so it can be a program name with args. 4404 set dummy mex; ac_word=$2 4393 4405 echo "$as_me:$LINENO: checking for $ac_word" >&5 4394 4406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4395 if test "${ac_cv_p rog_PERL+set}" = set; then4407 if test "${ac_cv_path_MEX+set}" = set; then 4396 4408 echo $ECHO_N "(cached) $ECHO_C" >&6 4397 4409 else 4398 if test -n "$PERL"; then 4399 ac_cv_prog_PERL="$PERL" # Let the user override the test. 4400 else 4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4410 case $MEX in 4411 [\\/]* | ?:[\\/]*) 4412 ac_cv_path_MEX="$MEX" # Let the user override the test with a path. 4413 ;; 4414 *) 4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4402 4416 for as_dir in $PATH 4403 4417 do … … 4406 4420 for ac_exec_ext in '' $ac_executable_extensions; do 4407 4421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4408 ac_cv_p rog_PERL="perl"4422 ac_cv_path_MEX="$as_dir/$ac_word$ac_exec_ext" 4409 4423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4410 4424 break 2 … … 4413 4427 done 4414 4428 4415 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="false" 4416 fi 4417 fi 4418 PERL=$ac_cv_prog_PERL 4429 ;; 4430 esac 4431 fi 4432 MEX=$ac_cv_path_MEX 4433 4434 if test -n "$MEX"; then 4435 echo "$as_me:$LINENO: result: $MEX" >&5 4436 echo "${ECHO_T}$MEX" >&6 4437 else 4438 echo "$as_me:$LINENO: result: no" >&5 4439 echo "${ECHO_T}no" >&6 4440 fi 4441 4442 fi 4443 fi 4444 fi 4445 4446 4447 4448 # Check whether --with-octave or --without-octave was given. 4449 if test "${with_octave+set}" = set; then 4450 withval="$with_octave" 4451 4452 fi; 4453 if test "$with_octave" != "no" ; then 4454 if test -x "$with_octave/bin/mkoctfile" 4455 then 4456 echo Found octave in $with_octave/bin/mkoctfile 4457 MKOCTFILE="$with_octave/bin/mkoctfile" 4458 else 4459 if test -x "$with_octave" 4460 then 4461 echo Found mkoctfile in $with_octave 4462 MKOCTFILE="$with_octave" 4463 else 4464 # Extract the first word of "mkoctfile", so it can be a program name with args. 4465 set dummy mkoctfile; ac_word=$2 4466 echo "$as_me:$LINENO: checking for $ac_word" >&5 4467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4468 if test "${ac_cv_path_MKOCTFILE+set}" = set; then 4469 echo $ECHO_N "(cached) $ECHO_C" >&6 4470 else 4471 case $MKOCTFILE in 4472 [\\/]* | ?:[\\/]*) 4473 ac_cv_path_MKOCTFILE="$MKOCTFILE" # Let the user override the test with a path. 4474 ;; 4475 *) 4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4477 for as_dir in $PATH 4478 do 4479 IFS=$as_save_IFS 4480 test -z "$as_dir" && as_dir=. 4481 for ac_exec_ext in '' $ac_executable_extensions; do 4482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4483 ac_cv_path_MKOCTFILE="$as_dir/$ac_word$ac_exec_ext" 4484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4485 break 2 4486 fi 4487 done 4488 done 4489 4490 ;; 4491 esac 4492 fi 4493 MKOCTFILE=$ac_cv_path_MKOCTFILE 4494 4495 if test -n "$MKOCTFILE"; then 4496 echo "$as_me:$LINENO: result: $MKOCTFILE" >&5 4497 echo "${ECHO_T}$MKOCTFILE" >&6 4498 else 4499 echo "$as_me:$LINENO: result: no" >&5 4500 echo "${ECHO_T}no" >&6 4501 fi 4502 4503 fi 4504 fi 4505 fi 4506 4507 4508 4509 4510 # Check whether --with-perl or --without-perl was given. 4511 if test "${with_perl+set}" = set; then 4512 withval="$with_perl" 4513 4514 fi; 4515 if test "$with_perl" != "no" ; then 4516 if test -x "$with_perl/bin/perl" 4517 then 4518 echo Found perl in $with_perl/bin/perl 4519 PERL="$with_perl/bin/perl" 4520 else 4521 if test -x "$with_perl" 4522 then 4523 echo Found perl in $with_perl 4524 PERL="$with_perl" 4525 else 4526 # Extract the first word of "perl", so it can be a program name with args. 4527 set dummy perl; ac_word=$2 4528 echo "$as_me:$LINENO: checking for $ac_word" >&5 4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4530 if test "${ac_cv_path_PERL+set}" = set; then 4531 echo $ECHO_N "(cached) $ECHO_C" >&6 4532 else 4533 case $PERL in 4534 [\\/]* | ?:[\\/]*) 4535 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 4536 ;; 4537 *) 4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4539 for as_dir in $PATH 4540 do 4541 IFS=$as_save_IFS 4542 test -z "$as_dir" && as_dir=. 4543 for ac_exec_ext in '' $ac_executable_extensions; do 4544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4545 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 4546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4547 break 2 4548 fi 4549 done 4550 done 4551 4552 ;; 4553 esac 4554 fi 4555 PERL=$ac_cv_path_PERL 4556 4419 4557 if test -n "$PERL"; then 4420 4558 echo "$as_me:$LINENO: result: $PERL" >&5 … … 4425 4563 fi 4426 4564 4565 fi 4566 fi 4567 fi 4427 4568 4428 4569 … … 4529 4670 fi 4530 4671 fi 4672 4673 4531 4674 4532 4675 … … 5204 5347 s,@FFLAGS@,$FFLAGS,;t t 5205 5348 s,@ac_ct_F77@,$ac_ct_F77,;t t 5349 s,@MEX@,$MEX,;t t 5350 s,@MKOCTFILE@,$MKOCTFILE,;t t 5206 5351 s,@PERL@,$PERL,;t t 5207 5352 s,@PYTHON@,$PYTHON,;t t -
trunk/configure.in
r497 r498 35 35 AC_PROG_F77([f77 fort77 g77 f90 xlf xlf90 fl32]) 36 36 37 AC_ARG_WITH(matlab, [ --with-matlab[=DIR] Build Matlab bindings if MEX compiler is found]) 38 dnl AC_CHECK_PROG(MEX, mex, mex, false) 39 if test "$with_matlab" != "no" ; then 40 if test -x "$with_matlab/bin/mex" 41 then 42 echo Found matlab in $with_matlab/bin/mex 43 MEX="$with_matlab/bin/mex" 44 else 45 if test -x "$with_matlab" 46 then 47 echo Found mex in $with_matlab 48 MEX="$with_matlab" 49 else 50 AC_PATH_PROG(MEX, mex) 51 fi 52 fi 53 fi 54 55 56 AC_ARG_WITH(octave, [ --with-octave[=DIR] Build Octave bindings if MKOCTFILE compiler is found]) 57 dnl AC_CHECK_PROG(MKOCTFILE, mkoctfile, mkoctfile, false) 58 if test "$with_octave" != "no" ; then 59 if test -x "$with_octave/bin/mkoctfile" 60 then 61 echo Found octave in $with_octave/bin/mkoctfile 62 MKOCTFILE="$with_octave/bin/mkoctfile" 63 else 64 if test -x "$with_octave" 65 then 66 echo Found mkoctfile in $with_octave 67 MKOCTFILE="$with_octave" 68 else 69 AC_PATH_PROG(MKOCTFILE, mkoctfile) 70 fi 71 fi 72 fi 73 74 37 75 dnl perl and python check borrowed from 38 76 dnl http://www.opensource.apple.com/darwinsource/Current/libxslt-8.1/libxslt/configure.in … … 42 80 43 81 AC_ARG_WITH(perl, [ --with-perl[=DIR] Build Perl bindings if found]) 44 AC_CHECK_PROG(PERL, perl, perl, false)82 dnl AC_CHECK_PROG(PERL, perl, perl, false) 45 83 dnl AM_CONDITIONAL(WITH_PERL, test "$PERL" != "false") 84 if test "$with_perl" != "no" ; then 85 if test -x "$with_perl/bin/perl" 86 then 87 echo Found perl in $with_perl/bin/perl 88 PERL="$with_perl/bin/perl" 89 else 90 if test -x "$with_perl" 91 then 92 echo Found perl in $with_perl 93 PERL="$with_perl" 94 else 95 AC_PATH_PROG(PERL, perl) 96 fi 97 fi 98 fi 46 99 47 100 dnl … … 72 125 then 73 126 PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[[0:3]]"` 74 echo Found Python version $PYTHON_VERSION 75 dnl LIBXML2_PYTHON=`$PYTHON -c "try : import libxml2 ; print 1 76 dnl except: print 0"` 77 dnl if test "$LIBXML2_PYTHON" = "1" 78 dnl then 79 dnl echo Found libxml2-python module 80 dnl else 81 dnl echo Warning: Missing libxml2-python 82 dnl fi 127 echo Using python version $PYTHON_VERSION 83 128 fi 84 129 if test "$PYTHON_VERSION" != "" … … 126 171 dnl AC_SUBST(PYTHON_SUBDIR) 127 172 173 AC_SUBST(MEX) 174 AC_SUBST(MKOCTFILE) 128 175 AC_SUBST(PERL) 129 176 AC_SUBST(PYTHON) -
trunk/src/Makefile.in
r491 r498 24 24 DEBUG_PLUS = -g -DDEBUG 25 25 # PY = $(RP_INSTALL_BASE)/bin/python 26 PY = python27 MEX = mex28 OCT = mkoctfile26 PY = @PYTHON@ 27 MEX = @MEX@ 28 OCT = @MKOCTFILE@ 29 29 LN = ln 30 30 -
trunk/src/matlab/Makefile.in
r489 r498 14 14 # define our compiling environment 15 15 # 16 MEX = mex16 MEX = @MEX@ 17 17 18 18 # define our directories -
trunk/src/octave/Makefile.in
r489 r498 14 14 # define our compiling environment 15 15 # 16 OCT = mkoctfile16 OCT = @MKOCTFILE@ 17 17 18 18 # define our directories
Note: See TracChangeset
for help on using the changeset viewer.