Changeset 833 for trunk/configure.in


Ignore:
Timestamp:
Dec 26, 2007, 5:19:28 PM (17 years ago)
Author:
dkearney
Message:

updated configure to allow user to compile with or without perl, python, octave, matlab
updated makefiles in examples dir to keep it quiet during compilation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.in

    r719 r833  
    1 AC_INIT(rappture, 1.1, rappture@nanohub.org)
     1AC_INIT(Rappture Core and Bindings, 1.1, rappture@nanohub.org)
    22
    33VERSION=0.0.1
     
    9090MEXEXT=
    9191dnl if test "$enable_matlab" != "no" ; then
    92     AC_MSG_CHECKING([for mex])
     92if test "$with_matlab" != "no" ; then
     93    AC_MSG_CHECKING([for matlab's mex])
    9394    if test "$with_matlab" != "no" ; then
    9495        dnl WITH_MATLAB = "yes"
    9596        if test -x "$with_matlab/bin/mex"
    9697        then
    97             echo Found mex in $with_matlab/bin/mex
     98            dnl # echo Found mex in $with_matlab/bin/mex
    9899            MEX="$with_matlab/bin/mex"
    99100        else
    100101            if test -x "$with_matlab"
    101102            then
    102                 echo Found mex in $with_matlab
     103                dnl # echo Found mex in $with_matlab
    103104                MEX="$with_matlab"
    104105            else
    105106                AC_PATH_PROG(MEX, mex)
    106107            fi
     108        fi
     109        matlab_path=`dirname $MEX`/matlab
     110        if test -x "$matlab_path"
     111        then
     112            MEX=${MEX}
     113        else
     114            MEX=
    107115        fi
    108116        AC_MSG_RESULT([${MEX}])
     
    137145            AC_MSG_RESULT([${MEXEXT}])
    138146        else
     147            dnl we shouldn't bother the user if we dont find matlab
     148            dnl just put out the message and don't compile matlab bindings
    139149            echo "can't find the matlab compiler \"mex\""
    140150            echo "use --with-matlab=DIR to specify the location of a matlab installation"
    141             exit 1
    142         fi
    143     fi
    144 dnl fi
     151            dnl # exit 1
     152        fi
     153    fi
     154fi
    145155AC_SUBST(MEX)
    146156AC_SUBST(MEX_ARCH)
     
    166176MKOCTFILE=
    167177dnl if test "$enable_octave" != "no" ; then
     178if test "$with_octave" != "no" ; then
    168179    AC_MSG_CHECKING([for mkoctfile])
    169180    if test "$with_octave" != "no" ; then
    170181        if test -x "$with_octave/bin/mkoctfile"
    171182        then
    172             echo Found octave in $with_octave/bin/mkoctfile
     183            dnl echo Found octave in $with_octave/bin/mkoctfile
    173184            MKOCTFILE="$with_octave/bin/mkoctfile"
    174185        else
     
    179190            else
    180191                AC_PATH_PROG(MKOCTFILE, mkoctfile)
     192                if test "x$MKOCTFILE" == "x" ; then
     193                    dnl we shouldn't bother the user if we dont find mkoctfile
     194                    dnl just put out the message and don't compile octave bindings
     195                    echo "can't find the matlab compiler \"mkoctfile\""
     196                    echo "use --with-octave=DIR to specify the location of a mkoctfile installation"
     197                    dnl # exit 1
     198                fi
    181199            fi
    182200        fi
    183201    fi
    184202    AC_MSG_RESULT([${MKOCTFILE}])
    185 dnl fi
     203fi
    186204AC_SUBST(MKOCTFILE)
    187205
    188206
    189 dnl perl and python check borrowed from 
     207dnl perl and python check borrowed from
    190208dnl http://www.opensource.apple.com/darwinsource/Current/libxslt-8.1/libxslt/configure.in
    191209dnl
     
    211229PERL_INCLUDES=
    212230PERL_SITE_PACKAGES=
    213 AC_MSG_CHECKING([for mkoctfile])
    214231if test "$with_perl" != "no" ; then
     232    AC_MSG_CHECKING([for perl])
    215233    if test -x "$with_perl/bin/perl"
    216234    then
     
    258276
    259277if test "$with_python" != "no" ; then
     278    AC_MSG_CHECKING([for python])
    260279    if test -x "$with_python/bin/python"
    261280    then
Note: See TracChangeset for help on using the changeset viewer.