I would like to use autoref from the hyperref package to create a reference to a floating listing as provided by minted. This code
\documentclass[a4paper]{book}
\usepackage{minted}
\usepackage{hyperref}
\begin{document}
\chapter{My chapter}
Take a look at the code in \autoref{lst:mylisting}.
\begin{listing}[htb]
\begin{minted}{erlang}
foo
bar
\end{minted}
\caption{My listing}
\label{lst:mylisting}
\end{listing}
\end{document}
should produce something like Listing 1.1 with a link around it.
I don't want to use Listing~\ref{lst:mylisting}, because it wouldn't be consistent with all the other links produced by autoref.
Any ideas?