Replace manual HAVE_* definition for sqlite by discovered one to help portability