Changeset 498 for trunk/configure


Ignore:
Timestamp:
Jul 30, 2006, 1:12:56 PM (13 years ago)
Author:
dkearney
Message:

added checks for matlab's mex compiler and octave's mkoctfile
added hooks for mex and mkoctfile inside src's makefile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r497 r498  
    310310#endif"
    311311
    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'
     312ac_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'
    313313ac_subst_files=''
    314314
     
    861861  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    862862  --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
    863865  --with-perl=DIR         Build Perl bindings if found
    864866  --with-python=DIR       Build Python bindings if found
     
    42394241
    42404242# Provide some information about the compiler.
    4241 echo "$as_me:4241:" \
     4243echo "$as_me:4243:" \
    42424244     "checking for Fortran 77 compiler version" >&5
    42434245ac_compiler=`set X $ac_compile; echo $2`
     
    43834385
    43844386
    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.
     4388if test "${with_matlab+set}" = set; then
     4389  withval="$with_matlab"
    43894390
    43904391fi;
    4391 # Extract the first word of "perl", so it can be a program name with args.
    4392 set dummy perl; ac_word=$2
     4392if 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.
     4404set dummy mex; ac_word=$2
    43934405echo "$as_me:$LINENO: checking for $ac_word" >&5
    43944406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    4395 if test "${ac_cv_prog_PERL+set}" = set; then
     4407if test "${ac_cv_path_MEX+set}" = set; then
    43964408  echo $ECHO_N "(cached) $ECHO_C" >&6
    43974409else
    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
    44024416for as_dir in $PATH
    44034417do
     
    44064420  for ac_exec_ext in '' $ac_executable_extensions; do
    44074421  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    4408     ac_cv_prog_PERL="perl"
     4422    ac_cv_path_MEX="$as_dir/$ac_word$ac_exec_ext"
    44094423    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    44104424    break 2
     
    44134427done
    44144428
    4415   test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="false"
    4416 fi
    4417 fi
    4418 PERL=$ac_cv_prog_PERL
     4429  ;;
     4430esac
     4431fi
     4432MEX=$ac_cv_path_MEX
     4433
     4434if test -n "$MEX"; then
     4435  echo "$as_me:$LINENO: result: $MEX" >&5
     4436echo "${ECHO_T}$MEX" >&6
     4437else
     4438  echo "$as_me:$LINENO: result: no" >&5
     4439echo "${ECHO_T}no" >&6
     4440fi
     4441
     4442        fi
     4443    fi
     4444fi
     4445
     4446
     4447
     4448# Check whether --with-octave or --without-octave was given.
     4449if test "${with_octave+set}" = set; then
     4450  withval="$with_octave"
     4451
     4452fi;
     4453if 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.
     4465set dummy mkoctfile; ac_word=$2
     4466echo "$as_me:$LINENO: checking for $ac_word" >&5
     4467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     4468if test "${ac_cv_path_MKOCTFILE+set}" = set; then
     4469  echo $ECHO_N "(cached) $ECHO_C" >&6
     4470else
     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
     4477for as_dir in $PATH
     4478do
     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
     4487done
     4488done
     4489
     4490  ;;
     4491esac
     4492fi
     4493MKOCTFILE=$ac_cv_path_MKOCTFILE
     4494
     4495if test -n "$MKOCTFILE"; then
     4496  echo "$as_me:$LINENO: result: $MKOCTFILE" >&5
     4497echo "${ECHO_T}$MKOCTFILE" >&6
     4498else
     4499  echo "$as_me:$LINENO: result: no" >&5
     4500echo "${ECHO_T}no" >&6
     4501fi
     4502
     4503        fi
     4504    fi
     4505fi
     4506
     4507
     4508
     4509
     4510# Check whether --with-perl or --without-perl was given.
     4511if test "${with_perl+set}" = set; then
     4512  withval="$with_perl"
     4513
     4514fi;
     4515if 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.
     4527set dummy perl; ac_word=$2
     4528echo "$as_me:$LINENO: checking for $ac_word" >&5
     4529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     4530if test "${ac_cv_path_PERL+set}" = set; then
     4531  echo $ECHO_N "(cached) $ECHO_C" >&6
     4532else
     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
     4539for as_dir in $PATH
     4540do
     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
     4549done
     4550done
     4551
     4552  ;;
     4553esac
     4554fi
     4555PERL=$ac_cv_path_PERL
     4556
    44194557if test -n "$PERL"; then
    44204558  echo "$as_me:$LINENO: result: $PERL" >&5
     
    44254563fi
    44264564
     4565        fi
     4566    fi
     4567fi
    44274568
    44284569
     
    45294670    fi
    45304671fi
     4672
     4673
    45314674
    45324675
     
    52045347s,@FFLAGS@,$FFLAGS,;t t
    52055348s,@ac_ct_F77@,$ac_ct_F77,;t t
     5349s,@MEX@,$MEX,;t t
     5350s,@MKOCTFILE@,$MKOCTFILE,;t t
    52065351s,@PERL@,$PERL,;t t
    52075352s,@PYTHON@,$PYTHON,;t t
Note: See TracChangeset for help on using the changeset viewer.