Replace autoconf variable with automake variable
Add libraries with _LDADD
Add libdl to _LDADD instead of _LDFLAGS
Break up long lines
Don't add generated sources to _SOURCES
Conditionalize sqlite libs
Move some stuff up

No functional changes
Remove unneeded flags from tools
Merge pull request #1790 from rubenk/cleanup-pdns-makefile-am

Cleanup pdns makefile am