* ./oldgcc.m4,
./nero/configure.in : - Detection des incompatibilites de version de g++ grace a "oldgcc.m4" (thanks Christophe Alexandre).
This commit is contained in:
parent
2645e11d11
commit
de37729db3
|
@ -21,6 +21,7 @@ AC_PROG_CXX
|
|||
AC_PROG_CC
|
||||
AC_PROG_RANLIB
|
||||
AC_PROG_MAKE_SET
|
||||
ALC_CXX_PROBLEMATIC_OLD_VERSION
|
||||
|
||||
AC_CHECK_LIB(m, pow)
|
||||
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
AC_DEFUN(ALC_CXX_PROBLEMATIC_OLD_VERSION,
|
||||
[
|
||||
AC_REQUIRE([AC_PROG_CXX])
|
||||
AC_MSG_CHECKING(if this is a problematic old ${CXX} version)
|
||||
AC_CACHE_VAL(alc_cv_cxx_problematic_version,
|
||||
[
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
AC_TRY_CPP([
|
||||
#ifdef __GNUC__
|
||||
#if __GNUC__ < 2
|
||||
#error ALC works best with GCC version 2.95.2 or higher
|
||||
#endif /* __GNUC__ < 2 */
|
||||
#ifdef __GNUC_MINOR__
|
||||
#if __GNUC__ == 2 && __GNUC_MINOR__ < 95
|
||||
#error ALC works only with GCC version 2.95.2 or higher
|
||||
#endif /* __GNUC_MINOR__ < 95.2 */
|
||||
#endif /* defined(__GNUC_MINOR__) */
|
||||
#endif /* defined(__GNUC__) */
|
||||
],
|
||||
alc_cv_cxx_problematic_version=no, alc_cv_cxx_problematic_version=yes)
|
||||
AC_LANG_RESTORE
|
||||
])
|
||||
AC_MSG_RESULT($alc_cv_cxx_problematic_version)
|
||||
if test "$alc_cv_cxx_problematic_version" = yes; then
|
||||
AC_MSG_ERROR(*** This package works only with ${CXX} version 2.95.2 or higher ... please install gcc 2.95.2 or higher or set the environment variable CC and CXX to the good gcc before running the configure script ***)
|
||||
fi
|
||||
])dnl
|
||||
dnl
|
||||
dnl
|
Loading…
Reference in New Issue