Files shipping with automake are now automatically taken from there, using the --add-missing parameter.
Fixes issue #6. Thanks to Wouter "yoe" Verhelst.
config.guess, config.sub, depcomp, etc, are all scripts that ship with
automake, and which will be updated with a new automake version; it's
generally a bad idea to use one of these scripts from a different
automake version.
Moreover, recent versions of automake also contain and require a
"compile" script, which isn't in this directory.
Instead, pass the "--add-missing" parameter to automake, which will copy
the required files to the expected location. This will make automake
work, regardless of the version, and will avoid any issues due to the
used scripts not matching the used automake version.
Since <boost/thread/thread.hpp> includes some headers which will already
call a boost_system function, recent versions of boost require
-lboost_system before -lboost_thread will work, resulting in a failure
of this test if not accounted for.
Make it try without -lboost_system first, but try again with it added to
$LIBS if that fails.