acinclude.m4: If the new pragma isn't supported, don't kill -Werror...
2000-05-22 Phil Edwards <pme@sourceware.cygnus.com> * acinclude.m4: If the new pragma isn't supported, don't kill -Werror; keep -Werror and add -Wno-unknown-pragma. -Werror Is Good. * aclocal.m4: Regenerate. * configure: Regenerate. From-SVN: r34088
This commit is contained in:
parent
678164a58e
commit
11a6e9a7dd
4 changed files with 26 additions and 19 deletions
|
@ -1,3 +1,10 @@
|
|||
2000-05-22 Phil Edwards <pme@sourceware.cygnus.com>
|
||||
|
||||
* acinclude.m4: If the new pragma isn't supported, don't kill -Werror;
|
||||
keep -Werror and add -Wno-unknown-pragma. -Werror Is Good.
|
||||
* aclocal.m4: Regenerate.
|
||||
* configure: Regenerate.
|
||||
|
||||
2000-05-19 Nathan C. Myers <ncm@cantrip.org>
|
||||
|
||||
* bits/generic_shadow.h: s/swamp/legacy/
|
||||
|
|
|
@ -171,6 +171,7 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_VERSION, [
|
|||
], gpp_satisfactory=yes, AC_MSG_ERROR("please upgrade to gcc-2.95 or above"))
|
||||
AC_MSG_RESULT($gpp_satisfactory)
|
||||
|
||||
WERROR='-Werror'
|
||||
AC_MSG_CHECKING([for g++ that supports new system_header pragma])
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
|
@ -180,7 +181,7 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_VERSION, [
|
|||
ac_save_CXXFLAGS="$CXXFLAGS"
|
||||
CXXFLAGS='-Wunknown-pragmas -Werror'
|
||||
AC_TRY_COMPILE([#pragma system_header], [int foo;
|
||||
], [WERROR='-Werror'], [WERROR=''])
|
||||
], [ac_newpragma=yes], [ac_newpragma=no])
|
||||
if test "$ac_test_CXXFLAGS" = set; then
|
||||
CXXFLAGS="$ac_save_CXXFLAGS"
|
||||
else
|
||||
|
@ -188,11 +189,10 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_VERSION, [
|
|||
CXXFLAGS=''
|
||||
fi
|
||||
AC_LANG_RESTORE
|
||||
if test "$WERROR" = ""; then
|
||||
AC_MSG_RESULT(no)
|
||||
else
|
||||
AC_MSG_RESULT(yes)
|
||||
if test "$ac_newpragma" = "no"; then
|
||||
WERROR="$WERROR -Wno-unknown-pragmas"
|
||||
fi
|
||||
AC_MSG_RESULT($ac_newpragma)
|
||||
|
||||
AC_MSG_CHECKING([for g++ that supports new inlining mechanism])
|
||||
AC_EGREP_CPP([ok], [
|
||||
|
|
10
libstdc++-v3/aclocal.m4
vendored
10
libstdc++-v3/aclocal.m4
vendored
|
@ -183,6 +183,7 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_VERSION, [
|
|||
], gpp_satisfactory=yes, AC_MSG_ERROR("please upgrade to gcc-2.95 or above"))
|
||||
AC_MSG_RESULT($gpp_satisfactory)
|
||||
|
||||
WERROR='-Werror'
|
||||
AC_MSG_CHECKING([for g++ that supports new system_header pragma])
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
|
@ -192,7 +193,7 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_VERSION, [
|
|||
ac_save_CXXFLAGS="$CXXFLAGS"
|
||||
CXXFLAGS='-Wunknown-pragmas -Werror'
|
||||
AC_TRY_COMPILE([#pragma system_header], [int foo;
|
||||
], [WERROR='-Werror'], [WERROR=''])
|
||||
], [ac_newpragma=yes], [ac_newpragma=no])
|
||||
if test "$ac_test_CXXFLAGS" = set; then
|
||||
CXXFLAGS="$ac_save_CXXFLAGS"
|
||||
else
|
||||
|
@ -200,11 +201,10 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_VERSION, [
|
|||
CXXFLAGS=''
|
||||
fi
|
||||
AC_LANG_RESTORE
|
||||
if test "$WERROR" = ""; then
|
||||
AC_MSG_RESULT(no)
|
||||
else
|
||||
AC_MSG_RESULT(yes)
|
||||
if test "$ac_newpragma" = "no"; then
|
||||
WERROR="$WERROR -Wno-unknown-pragmas"
|
||||
fi
|
||||
AC_MSG_RESULT($ac_newpragma)
|
||||
|
||||
AC_MSG_CHECKING([for g++ that supports new inlining mechanism])
|
||||
AC_EGREP_CPP([ok], [
|
||||
|
|
18
libstdc++-v3/configure
vendored
18
libstdc++-v3/configure
vendored
|
@ -2098,8 +2098,9 @@ rm -f conftest*
|
|||
|
||||
echo "$ac_t""$gpp_satisfactory" 1>&6
|
||||
|
||||
WERROR='-Werror'
|
||||
echo $ac_n "checking for g++ that supports new system_header pragma""... $ac_c" 1>&6
|
||||
echo "configure:2103: checking for g++ that supports new system_header pragma" >&5
|
||||
echo "configure:2104: checking for g++ that supports new system_header pragma" >&5
|
||||
|
||||
ac_ext=C
|
||||
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
||||
|
@ -2114,7 +2115,7 @@ cross_compiling=$ac_cv_prog_cxx_cross
|
|||
ac_save_CXXFLAGS="$CXXFLAGS"
|
||||
CXXFLAGS='-Wunknown-pragmas -Werror'
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2118 "configure"
|
||||
#line 2119 "configure"
|
||||
#include "confdefs.h"
|
||||
#pragma system_header
|
||||
int main() {
|
||||
|
@ -2122,14 +2123,14 @@ int foo;
|
|||
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:2126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:2127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
WERROR='-Werror'
|
||||
ac_newpragma=yes
|
||||
else
|
||||
echo "configure: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
rm -rf conftest*
|
||||
WERROR=''
|
||||
ac_newpragma=no
|
||||
fi
|
||||
rm -f conftest*
|
||||
if test "$ac_test_CXXFLAGS" = set; then
|
||||
|
@ -2145,11 +2146,10 @@ ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|||
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
||||
cross_compiling=$ac_cv_prog_cc_cross
|
||||
|
||||
if test "$WERROR" = ""; then
|
||||
echo "$ac_t""no" 1>&6
|
||||
else
|
||||
echo "$ac_t""yes" 1>&6
|
||||
if test "$ac_newpragma" = "no"; then
|
||||
WERROR="$WERROR -Wno-unknown-pragmas"
|
||||
fi
|
||||
echo "$ac_t""$ac_newpragma" 1>&6
|
||||
|
||||
echo $ac_n "checking for g++ that supports new inlining mechanism""... $ac_c" 1>&6
|
||||
echo "configure:2156: checking for g++ that supports new inlining mechanism" >&5
|
||||
|
|
Loading…
Add table
Reference in a new issue