comparison configure.in @ 108364:243bfb706af1

Add check for buggy version of GCC (Bug#6031). * configure.in: Add check for buggy version of GCC (Bug#6031). * configure: Regenerate * etc/NEWS: Minor tweak to problem description.
author Chong Yidong <cyd@stupidchicken.com>
date Sun, 02 May 2010 21:42:50 -0400
parents c3a1d1b47790
children d4caa51ddfe2
comparison
equal deleted inserted replaced
108363:642b031fce0f 108364:243bfb706af1
2598 2598
2599 # Set up the CFLAGS for real compilation, so we can substitute it. 2599 # Set up the CFLAGS for real compilation, so we can substitute it.
2600 CFLAGS="$REAL_CFLAGS" 2600 CFLAGS="$REAL_CFLAGS"
2601 CPPFLAGS="$REAL_CPPFLAGS" 2601 CPPFLAGS="$REAL_CPPFLAGS"
2602 2602
2603 ## Hack to detect a buggy GCC version.
2604 if test "x$GCC" = xyes \
2605 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
2606 && test x"`echo $CFLAGS | grep '\-O@<:@23@:>@'`" != x \
2607 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
2608 AC_MSG_ERROR([GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'.])
2609 fi
2610
2603 #### Find out which version of Emacs this is. 2611 #### Find out which version of Emacs this is.
2604 [version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ 2612 [version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
2605 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`] 2613 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`]
2606 if test x"${version}" = x; then 2614 if test x"${version}" = x; then
2607 AC_MSG_ERROR([can't find current emacs version in `${srcdir}/lisp/version.el'.]) 2615 AC_MSG_ERROR([can't find current emacs version in `${srcdir}/lisp/version.el'.])