Changeset 498 for trunk/configure.in


Ignore:
Timestamp:
Jul 30, 2006 10:12:56 AM (15 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.in

    r497 r498  
    3535AC_PROG_F77([f77 fort77 g77 f90 xlf xlf90 fl32])
    3636
     37AC_ARG_WITH(matlab, [  --with-matlab[=DIR]         Build Matlab bindings if MEX compiler is found])
     38dnl AC_CHECK_PROG(MEX, mex, mex, false)
     39if 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
     53fi
     54
     55
     56AC_ARG_WITH(octave, [  --with-octave[=DIR]         Build Octave bindings if MKOCTFILE compiler is found])
     57dnl AC_CHECK_PROG(MKOCTFILE, mkoctfile, mkoctfile, false)
     58if 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
     72fi
     73
     74
    3775dnl perl and python check borrowed from
    3876dnl http://www.opensource.apple.com/darwinsource/Current/libxslt-8.1/libxslt/configure.in
     
    4280
    4381AC_ARG_WITH(perl, [  --with-perl[=DIR]         Build Perl bindings if found])
    44 AC_CHECK_PROG(PERL, perl, perl, false)
     82dnl AC_CHECK_PROG(PERL, perl, perl, false)
    4583dnl AM_CONDITIONAL(WITH_PERL, test "$PERL" != "false")
     84if 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
     98fi
    4699
    47100dnl
     
    72125    then
    73126        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
    83128    fi
    84129    if test "$PYTHON_VERSION" != ""
     
    126171dnl AC_SUBST(PYTHON_SUBDIR)
    127172
     173AC_SUBST(MEX)
     174AC_SUBST(MKOCTFILE)
    128175AC_SUBST(PERL)
    129176AC_SUBST(PYTHON)
Note: See TracChangeset for help on using the changeset viewer.