message " Museek+ can optionally use either pycrypto or its own PyMucipher\n" \
        "library. This is required for simple clients and control tools" &&

config_query_list MUSEEKPLUS_HASHLIB "Select which hashing library to use:" \
                                     pycrypto \
                                     pymucipher \
                                     none &&

if [[ $MUSEEKPLUS_HASHLIB != none ]]; then
  config_query_option MUSEEKPLUS_OPTS "Install simple clients?" y \
                                      "-DCLIENTS=ON" \
                                      "-DCLIENTS=OFF"
else
  MUSEEKPLUS_OPTS="-DCLIENTS=OFF $MUSEEKPLUS_OPTS"
fi &&

config_query_option MUSEEKPLUS_OPTS "Build daemon?" y \
                                    "-DNO_MUSEEKD=OFF" \
                                    "-DNO_MUSEEKD=ON" &&

config_query_option MUSEEKPLUS_OPTS "Build tool for scanning shared files?" y \
                                    "-DNO_MUSCAN=OFF" \
                                    "-DNO_MUSCAN=ON"

config_query_option MUSEEKPLUS_OPTS "Enable debug mode?" n \
                                    "-DCMAKE_BUILD_TYPE=Debug" \
                                    "-DCMAKE_BUILD_TYPE=Release"
