comparison configure @ 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
25557 25557
25558 # Set up the CFLAGS for real compilation, so we can substitute it. 25558 # Set up the CFLAGS for real compilation, so we can substitute it.
25559 CFLAGS="$REAL_CFLAGS" 25559 CFLAGS="$REAL_CFLAGS"
25560 CPPFLAGS="$REAL_CPPFLAGS" 25560 CPPFLAGS="$REAL_CPPFLAGS"
25561 25561
25562 ## Hack to detect a buggy GCC version.
25563 if test "x$GCC" = xyes \
25564 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
25565 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
25566 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
25567 { { $as_echo "$as_me:$LINENO: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&5
25568 $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&2;}
25569 { (exit 1); exit 1; }; }
25570 fi
25571
25562 #### Find out which version of Emacs this is. 25572 #### Find out which version of Emacs this is.
25563 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ 25573 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25564 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` 25574 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25565 if test x"${version}" = x; then 25575 if test x"${version}" = x; then
25566 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 25576 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5