I want to know if there is any tool that, given the output of configure, cmake, autoconf or whatever library/dependencies matcher you have; installs the required packages/sources for you from your distro repo.
In other words, some tool that resolves library dependencies for you, installing needed packages depending on your repo, when you want to build a program from source which you don't know which libraries are required.
I give you a random example:
Some time ago I wanted to use Oprofile. It isn't packaged for Ubuntu 14.04 so I had to build for myself.
In the README file it says I have to do ./configure first. I did ./configure once, it threw out an error saying "popt" library wasn't found. I looked up on Internet, I discovered which deb package I had to install for that library, I installed it and I did ./configure again.
Second time, it again threw an error saying liberty library wasn't found. Again, I looked up what library I needed, I found that for Ubuntu it was binutils-dev. But when I tried to install it, It didn't work. Funny enough, that library was in binutils-dev package for ubuntu 12.04, but libiberty-dev for ubuntu 14.04.
For the third time, I finally was able to compile it and run the program