mirror of git://gcc.gnu.org/git/gcc.git
re PR bootstrap/44432 ([boot with C++] configure does not check presence of host C++ compiler)
PR bootstrap/44432 * configure.ac: Before using ZW_PROG_COMPILER_DEPENDENCIES for C++, check that C++ compiler works. * configure: Regenerate. From-SVN: r160460
This commit is contained in:
parent
07b7ede0bf
commit
ff5dfc4869
|
|
@ -1,3 +1,10 @@
|
||||||
|
2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
|
||||||
|
|
||||||
|
PR bootstrap/44432
|
||||||
|
* configure.ac: Before using ZW_PROG_COMPILER_DEPENDENCIES for C++,
|
||||||
|
check that C++ compiler works.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
|
2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
|
||||||
|
|
||||||
* include/symtab.h (ht_identifier_ptr): New.
|
* include/symtab.h (ht_identifier_ptr): New.
|
||||||
|
|
|
||||||
|
|
@ -4400,6 +4400,29 @@ else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
|
ac_ext=cpp
|
||||||
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
||||||
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||||
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
||||||
|
|
||||||
|
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
int i;
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_cxx_try_compile "$LINENO"; then :
|
||||||
|
|
||||||
|
else
|
||||||
|
as_fn_error "C++ compiler missing or inoperational" "$LINENO" 5
|
||||||
|
fi
|
||||||
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
|
ac_ext=c
|
||||||
|
ac_cpp='$CPP $CPPFLAGS'
|
||||||
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||||
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||||
|
|
||||||
depcc="$CXX" am_compiler_list=
|
depcc="$CXX" am_compiler_list=
|
||||||
|
|
||||||
am_depcomp=$ac_aux_dir/depcomp
|
am_depcomp=$ac_aux_dir/depcomp
|
||||||
|
|
@ -4997,8 +5020,7 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||||
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
||||||
|
|
||||||
|
ac_ext=cpp
|
||||||
ac_ext=cpp
|
|
||||||
ac_cpp='$CXXCPP $CPPFLAGS'
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
||||||
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,10 @@ ZW_CREATE_DEPDIR
|
||||||
if test "$ENABLE_BUILD_WITH_CXX" = "no"; then
|
if test "$ENABLE_BUILD_WITH_CXX" = "no"; then
|
||||||
ZW_PROG_COMPILER_DEPENDENCIES([CC])
|
ZW_PROG_COMPILER_DEPENDENCIES([CC])
|
||||||
else
|
else
|
||||||
|
AC_LANG_PUSH([C++])
|
||||||
|
AC_COMPILE_IFELSE([[int i;]], [],
|
||||||
|
[AC_MSG_ERROR([C++ compiler missing or inoperational])])
|
||||||
|
AC_LANG_POP([C++])
|
||||||
ZW_PROG_COMPILER_DEPENDENCIES([CXX])
|
ZW_PROG_COMPILER_DEPENDENCIES([CXX])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue