Move up AC_CONFIG_AUX_DIR so that both automake and autoconf detects
it early enough. Remove explicit AC_SUBST of several variables that automake handles automatically, or that was used for functionality that automake provides in different ways: CFLAGS, CPPFLAGS, LDFLAGS, DEPENDFLAGS, INCLUDE_CURRENT, EXTRAARFLAGS, SRCTOPDIR, BUILDTOPDIR. Added call to AM_C_PROTOTYPES. Rely on automakes ability to fix dependencies automatically and handle ARFLAGS properly. Use CMOD_COMPILER_CC_ACCEPTS to check for a lot of warning flags to use. Use CMOD_C_ATTRIBUTE_UNUSED. Use AM_PROG_LEX instead of AC_PROG_LEX. Removed check for sys/select.h, which only isc uses. Added check for values.h. Run configure in src/libraries/libisc-new instead of creating makefiles in that directory. Generated db-crypt/Makefile and run-support/Makefile.