All, This patch restores bootstrap on i386-*-freebsd*. The build was failing after the introduction of -std=c++98 configure/build flag. The -std=c++98 enables strict_ansi and on FreeBSD the libc function atoll is not defined for this. But the configure always stated atoll available..... A bit debugging showed, to my understanding now, the AC_CHECK_FUNCS only checks it a func is available, not more. While the gcc_AC_CHECK_DECLS really recognises the build flags and tells me that atoll w/o std=c++98 is available and with std=c++98 it is not available. So, the below patch addresses this and restores bootstrap on FreeBSD. Ok for trunk? Thanks, Andreas 2015-05-28 Andreas Tobler * configure.ac: Move the atoll check from AC_CHECK_FUNCS to gcc_AC_CHECK_DECLS. * configure: Regenerate.