2002-01-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de>

* configure.ac: Fix tests for GCC.
This commit is contained in:
Ralf Corsepius
2003-01-25 14:54:13 +00:00
parent 22bd219bf5
commit d790ca3406
2 changed files with 6 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
2002-01-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Fix tests for GCC.
2002-01-24 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Add check for weak function attribute.

View File

@@ -39,7 +39,7 @@ AC_MSG_RESULT([$HAVE_ASSIGNABLE_STDIO])
# serdbg exploits weak symbols
AC_CACHE_CHECK([whether $CC supports function __attribute__((weak))],
[rtems_cv_cc_attribute_weak],[
AS_IF([test $GCC = yes],[
AS_IF([test x"$GCC" = xyes],[
save_CFLAGS=$CFLAGS
CFLAGS=-Werror])
@@ -51,7 +51,7 @@ AC_CACHE_CHECK([whether $CC supports function __attribute__((weak))],
[rtems_cv_cc_attribute_weak=yes],
[rtems_cv_cc_attribute_weak=no])
AS_IF([test $GCC = yes],[
AS_IF([test x"$GCC" = xyes],[
CFLAGS=$save_CFLAGS])
])