http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57028
--- Comment #3 from Mikael Pettersson <mikpe at it dot uu.se> 2013-04-24 16:54:41 UTC --- As far as I understand it, there are two issues: 1. zlib isn't built unless some explicitly enabled component demands it; in my case (on x86_64) zlib was built since I had java enabled, but nothing in Fortran appears to declare a dependency on zlib. Maybe gcc/fortran/config-lang.in is the place to declare that? 2. The in-tree zlib isn't added automatically to include and library paths, components need to check for with_system_zlib and adjust their paths accordingly, c.f. libjava/configure.ac.