. $GRIMOIRE/config_query_multi.function                          &&
config_query_multi  FFTW_PRECISION "Choose precisions to build:" \
                    double single longdouble                     &&
# Let's just enable a default set of vector instructions.
message "${MESSAGE_COLOR}Using default SIMD opts. You might want to add\
 custom configure options for exotic SIMD.${DEFAULT_COLOR}"      &&
# Transition from FFTW_OPTS_NEW for sub depends.
threads=n &&
openmp=n  &&
for o in $FFTW_OPTS_NEW
do
  case "$o" in
    --enable-threads)
      threads=y
    ;;
    --enable-openmp)
      openmp=y
    ;;
  esac
done &&
config_query FFTW_THREADS "Parallel fftw using pthreads?" $threads &&
config_query FFTW_OPENMP  "Parallel fftw using OpenMP?"   $openmp  &&
# It was a long time ago that we had to be careful with enabling SSE or FMA.
# Remove the options for that.
# Also outdated new opts.
persistent_remove FFTW_VECTOR      &&
persistent_remove FFTW_OPTS_NEW    &&
persistent_remove FFTW_DOUBLEOPTS  &&
persistent_remove FFTW_FLOATOPTS   &&
persistent_remove FFTW_OPTS
