I was thinking I had done this without autotools. But looking at my tasker list I was wrong.
This is what I used it for.