depends -sub FORTRAN gcc  &&
depends lapack &&
depends pcre &&

optional_depends texlive \
		 --{enable,disable}-docs \
		 'for building the documentation' &&

# I want optional_depends "qtbase qttools" ...
optional_depends qtbase "" "--without-qt" "for Qt GUI" &&
if is_depends_enabled $SPELL qtbase; then
  depends qttools &&
  optional_depends qscintilla "" "--without-qscintilla" "for GUI Editor"
fi &&

optional_depends  gnuplot                 \
                  ''                      \
                  ''                      \
                  'for 2d and 3d graphs'  &&

optional_depends -sub OPENGL fltk                              \
                  ''                                \
                  ''                                \
                  'for FLTK based plotting system'  &&

optional_depends  readline                           \
                  '--enable-readline'                \
                  '--disable-readline'               \
                  'for better command-line support'  &&

#
# Can't find the MPI libraries
#
#optional_depends  mpich2                                   \
#                  '--with-mpi'                             \
#                  '--without-mpi'                          \
#                  'for Message Passing Interface support'  &&

#
# Untested
#
# some BLAS is needed ... the switch for Atlas needs to be investigated.
# We want OpenBLAS anyway.
optional_depends  atlas                                             \
                  ''                                     \
                  ''                                  \
                  'for automatically tuned linear algebra support'  &&

optional_depends  fftw                             \
                  '--with-fftw'                    \
                  '--without-fftw'                 \
                  'use the system-installed fftw'
