+mon_dir_password=
+
+# Check whether --with-mon-dir-password or --without-mon-dir-password was given.
+if test "${with_mon_dir_password+set}" = set; then
+ withval="$with_mon_dir_password"
+
+ if test "x$withval" != "xno" ; then
+ mon_dir_password=$withval
+ fi
+
+
+fi;
+
+if test "x$mon_dir_password" = "x" ; then
+ if test "x$OPENSSL" = "xnone" ; then
+# key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
+ key=`autoconf/randpass 33`
+ else
+ key=`openssl rand -base64 33`
+ fi
+ mon_dir_password=$key
+fi
+
+mon_fd_password=
+
+# Check whether --with-mon-fd-password or --without-mon-fd-password was given.
+if test "${with_mon_fd_password+set}" = set; then
+ withval="$with_mon_fd_password"
+
+ if test "x$withval" != "xno" ; then
+ mon_fd_password=$withval
+ fi
+
+
+fi;
+
+if test "x$mon_fd_password" = "x" ; then
+ if test "x$OPENSSL" = "xnone" ; then
+# key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
+ key=`autoconf/randpass 37`
+ else
+ key=`openssl rand -base64 33`
+ fi
+ mon_fd_password=$key
+fi
+
+mon_sd_password=
+
+# Check whether --with-mon-sd-password or --without-mon-sd-password was given.
+if test "${with_mon_sd_password+set}" = set; then
+ withval="$with_mon_sd_password"
+
+ if test "x$withval" != "xno" ; then
+ mon_sd_password=$withval
+ fi
+
+
+fi;
+
+if test "x$mon_sd_password" = "x" ; then
+ if test "x$OPENSSL" = "xnone" ; then
+# key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
+ key=`autoconf/randpass 41`
+ else
+ key=`openssl rand -base64 33`
+ fi
+ mon_sd_password=$key
+fi
+
+