diff options
author | Willem Jan Palenstijn <wjp@usecode.org> | 2016-11-18 09:06:40 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-18 09:06:40 -0800 |
commit | 7f284de17492cba08848821387c8c49e7348f02c (patch) | |
tree | 323747764903567f0de3b484bc202059637d5ac9 /build/linux/configure.ac | |
parent | 6c9756b1d26d1e920b12cdcf8580362690427ddc (diff) | |
parent | 64a48bea80b909311351dc3b1345a17c693ddb69 (diff) | |
download | astra-7f284de17492cba08848821387c8c49e7348f02c.tar.gz astra-7f284de17492cba08848821387c8c49e7348f02c.tar.bz2 astra-7f284de17492cba08848821387c8c49e7348f02c.tar.xz astra-7f284de17492cba08848821387c8c49e7348f02c.zip |
Merge pull request #73 from wjp/octave
Add experimental support for Octave
Diffstat (limited to 'build/linux/configure.ac')
-rw-r--r-- | build/linux/configure.ac | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/build/linux/configure.ac b/build/linux/configure.ac index 630b08d..0d80cec 100644 --- a/build/linux/configure.ac +++ b/build/linux/configure.ac @@ -175,6 +175,28 @@ fi AC_SUBST(HAVEMATLAB) +# octave + +AC_ARG_ENABLE(octave, [[ --disable-octave disable Octave support]]) +if test x"$enable_octave" != xno; then + AC_PATH_PROG([HAVEOCTAVE], [octave-config], [no], [$PATH]) + AC_MSG_CHECKING([for octave]) + if test x"HAVEOCTAVE" != xno -a $HAVEMATLAB = yes; then + HAVEOCTAVE=no + AC_MSG_RESULT([no (since Matlab support is enabled)]) + else + if test x"$HAVEOCTAVE" != xno; then + OCTAVE_CPPFLAGS="-I`octave-config -p OCTINCLUDEDIR`" + AC_SUBST(OCTAVE_CPPFLAGS) + HAVEOCTAVE=yes + fi + AC_MSG_RESULT($HAVEOCTAVE) + fi +else + HAVEOCTAVE=no +fi +AC_SUBST(HAVEOCTAVE) + # python AC_ARG_WITH(python, [[ --with-python=path path of Python binary (optional)]],,) @@ -271,6 +293,7 @@ echo echo "Summary of ASTRA Toolbox build options:" echo " CUDA : $HAVECUDA" echo " Matlab : $HAVEMATLAB" +echo " Octave : $HAVEOCTAVE" echo " Python : $HAVEPYTHON" echo echo " prefix : $prefix" |