configure.ac: Fail early if creating auto-build.h fails configure: regen --- gcc/configure | 8 ++++++-- gcc/configure.ac | 4 ++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/configure b/gcc/configure index dc4298097..5bf4b2954 100755 --- a/gcc/configure +++ b/gcc/configure @@ -11893,6 +11893,10 @@ else --enable-languages=${enable_languages-all} \ --target=$target_alias --host=$build_alias --build=$build_alias + if test ! -f auto-host.h ; then + as_fn_error $? "Failed to generate build configuration" "$LINENO" 5 + fi + # We just finished tests for the build machine, so rename # the file auto-build.h in the gcc directory. mv auto-host.h ../auto-build.h @@ -18572,7 +18576,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 18575 "configure" +#line 18579 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -18678,7 +18682,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 18681 "configure" +#line 18685 "configure" #include "confdefs.h" #if HAVE_DLFCN_H diff --git a/gcc/configure.ac b/gcc/configure.ac index 2a1f3bb39..5f05ab8da 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -1740,6 +1740,10 @@ else --enable-languages=${enable_languages-all} \ --target=$target_alias --host=$build_alias --build=$build_alias + if test ! -f auto-host.h ; then + AC_MSG_ERROR([Failed to generate build configuration]) + fi + # We just finished tests for the build machine, so rename # the file auto-build.h in the gcc directory. mv auto-host.h ../auto-build.h -- 2.19.1