config_query_option UDEV_OPTS \
                    "Compile extra debugging messages?" n \
                    "--enable-debug" \
                    "--disable-debug" &&

#
# Remove this after stable-0.58 is released.
# Bug #15994
#
if list_find "$UDEV_OPTS" '--enable-extras'; then
  list_remove UDEV_OPTS '--enable-extras'
elif list_find "$UDEV_OPTS" '--disable-extras'; then
  list_remove UDEV_OPTS '--disable-extras'
fi &&
#
# End Bug #15994
#

if spell_ok hotplug; then
  message "You seem to have hotplug installed. Hotplug has been" \
          "officially\ndeprecated in favor of udev, and it is" \
          "highly recommended that\nhotplug is removed after" \
          "udev has been installed." &&

  config_query UDEV_DISPEL_HOTPLUG \
               "Dispel hotplug after udev is cast?" y
fi
