Disable precompiled headers on gcc 4.1

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@26977 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2008-10-27 15:53:43 +00:00
parent e86b337250
commit 1b6aaf38e0
3 changed files with 44 additions and 15 deletions

View file

@ -1,3 +1,9 @@
2008-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
* configure.ac: Disable precompiled headers on gcc 4.1 since
there is no reliable ways to determine if they work or not.
* configure: Regenerated.
2008-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
* configure.ac: Added special case when checking for thread

28
configure vendored
View file

@ -5258,6 +5258,13 @@ echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C"
# So we prefer to actually try them out! ;-)
# (Unfortunately, even that is not enough since we have reports of
# 4.1.1 GCC prereleases that pass this simple test, but where any
# serious usage of precompiled headers (ie, including
# Foundation/Foundation.h and AppKit/AppKit.h) doesn't work. So in
# addition to doing this test, we also forcefully disable precompiled
# headers in 4.1)
# What we want to do: set GCC_WITH_PRECOMPILED_HEADERS to yes if gcc
# can compile and use a precompiled header.
@ -5269,16 +5276,21 @@ if test ! "${GCC}" = "yes" ; then
echo "$as_me:$LINENO: result: no: it's not gcc" >&5
echo "${ECHO_T}no: it's not gcc" >&6
else
gs_precomp_test_builddir="`pwd`"
gs_precomp_test_results=`(CC="$CC"; export CC; CFLAGS="$CFLAGS"; export CFLAGS; CPPLAGS="$CPPFLAGS"; export CPPFLAGS; LDFLAGS="$LDFLAGS"; export LDFLAGS; LIBS="$LIBS"; export LIBS; cd "$srcdir/config-precomp-test/"; ./run-test.sh "$gs_precomp_test_builddir"; echo $?) 2>&5`
if test "$gs_precomp_test_results" = "0"; then
GCC_WITH_PRECOMPILED_HEADERS="yes"
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
if test "${gs_cv_gcc_parsed_version}" = "4.1" >&5 2>&5; then
echo "$as_me:$LINENO: result: no: gcc 4.1 is often shipped with broken precompiled headers" >&5
echo "${ECHO_T}no: gcc 4.1 is often shipped with broken precompiled headers" >&6
else
# Please check the config-precomp-test.log log file for more info
echo "$as_me:$LINENO: result: no: old or buggy gcc" >&5
gs_precomp_test_builddir="`pwd`"
gs_precomp_test_results=`(CC="$CC"; export CC; CFLAGS="$CFLAGS"; export CFLAGS; CPPLAGS="$CPPFLAGS"; export CPPFLAGS; LDFLAGS="$LDFLAGS"; export LDFLAGS; LIBS="$LIBS"; export LIBS; cd "$srcdir/config-precomp-test/"; ./run-test.sh "$gs_precomp_test_builddir"; echo $?) 2>&5`
if test "$gs_precomp_test_results" = "0"; then
GCC_WITH_PRECOMPILED_HEADERS="yes"
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
# Please check the config-precomp-test.log log file for more info
echo "$as_me:$LINENO: result: no: old or buggy gcc" >&5
echo "${ECHO_T}no: old or buggy gcc" >&6
fi
fi
fi

View file

@ -1296,6 +1296,13 @@ AC_MSG_CHECKING(if the compiler supports precompiled headers)
# So we prefer to actually try them out! ;-)
# (Unfortunately, even that is not enough since we have reports of
# 4.1.1 GCC prereleases that pass this simple test, but where any
# serious usage of precompiled headers (ie, including
# Foundation/Foundation.h and AppKit/AppKit.h) doesn't work. So in
# addition to doing this test, we also forcefully disable precompiled
# headers in 4.1)
# What we want to do: set GCC_WITH_PRECOMPILED_HEADERS to yes if gcc
# can compile and use a precompiled header.
@ -1306,14 +1313,18 @@ GCC_WITH_PRECOMPILED_HEADERS="no"
if test ! "${GCC}" = "yes" ; then
AC_MSG_RESULT(no: it's not gcc)
else
gs_precomp_test_builddir="`pwd`"
gs_precomp_test_results=`(CC="$CC"; export CC; CFLAGS="$CFLAGS"; export CFLAGS; CPPLAGS="$CPPFLAGS"; export CPPFLAGS; LDFLAGS="$LDFLAGS"; export LDFLAGS; LIBS="$LIBS"; export LIBS; cd "$srcdir/config-precomp-test/"; ./run-test.sh "$gs_precomp_test_builddir"; echo $?) 2>&5`
if test "$gs_precomp_test_results" = "0"; then
GCC_WITH_PRECOMPILED_HEADERS="yes"
AC_MSG_RESULT(yes)
if test "${gs_cv_gcc_parsed_version}" = "4.1" >&5 2>&5; then
AC_MSG_RESULT(no: gcc 4.1 is often shipped with broken precompiled headers)
else
# Please check the config-precomp-test.log log file for more info
AC_MSG_RESULT(no: old or buggy gcc)
gs_precomp_test_builddir="`pwd`"
gs_precomp_test_results=`(CC="$CC"; export CC; CFLAGS="$CFLAGS"; export CFLAGS; CPPLAGS="$CPPFLAGS"; export CPPFLAGS; LDFLAGS="$LDFLAGS"; export LDFLAGS; LIBS="$LIBS"; export LIBS; cd "$srcdir/config-precomp-test/"; ./run-test.sh "$gs_precomp_test_builddir"; echo $?) 2>&5`
if test "$gs_precomp_test_results" = "0"; then
GCC_WITH_PRECOMPILED_HEADERS="yes"
AC_MSG_RESULT(yes)
else
# Please check the config-precomp-test.log log file for more info
AC_MSG_RESULT(no: old or buggy gcc)
fi
fi
fi