2.40.1 (stable):

* Add a config-time test for support of std::exception_ptr. Don't try to
  use std::exception_ptr on a system where it does not exist.
  (Daniel Trebbien, Kjell Ahlstedt) Bug #757042 (Michael Biebl)