https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109926
--- Comment #10 from cqwrteur <unlvsur at live dot com> --- (In reply to Jonathan Wakely from comment #8) > Comment on attachment 55135 [details] > config > > configure:18893: checking fenv.h usability > configure:18893: i586-msdosdjgpp-c++ -c -g -O2 -std=c++11 > -fno-exceptions conftest.cpp >&5 > configure:18893: $? = 0 > configure:18893: result: yes > configure:18893: checking fenv.h presence > configure:18893: i586-msdosdjgpp-c++ -E conftest.cpp > configure:18893: $? = 0 > configure:18893: result: yes > configure:18893: checking for fenv.h > configure:18893: result: yes > > This means configure is finding fenv.h in your sysroot. i586-msdosdjgpp-c++ should use i586-msdosdjgpp-gcc to test, not i586-msdosdjgpp-c++ i think