From f934a9d630c3653d8258e6bdcbcd46ad14be7c77 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 18 Nov 2002 02:36:06 +0000 Subject: 2002-11-18 Ralf Corsepius * configure.ac: Remove -ansi -fasm. Add checks to diagnose potential system header conflicts. * Makefile.am: Unconditionally install sys/cdefs.h. --- cpukit/libcsupport/ChangeLog | 6 ++++++ cpukit/libcsupport/Makefile.am | 5 +++-- cpukit/libcsupport/configure.ac | 10 ++++++++-- 3 files changed, 17 insertions(+), 4 deletions(-) (limited to 'cpukit/libcsupport') diff --git a/cpukit/libcsupport/ChangeLog b/cpukit/libcsupport/ChangeLog index c2114588bb..b347565993 100644 --- a/cpukit/libcsupport/ChangeLog +++ b/cpukit/libcsupport/ChangeLog @@ -1,3 +1,9 @@ +2002-11-18 Ralf Corsepius + + * configure.ac: Remove -ansi -fasm. + Add checks to diagnose potential system header conflicts. + * Makefile.am: Unconditionally install sys/cdefs.h. + 2002-11-07 * src/mount.c: Per PR297, correct fs_mountme failure paths. diff --git a/cpukit/libcsupport/Makefile.am b/cpukit/libcsupport/Makefile.am index 1a6e154179..177acf542d 100644 --- a/cpukit/libcsupport/Makefile.am +++ b/cpukit/libcsupport/Makefile.am @@ -56,11 +56,11 @@ PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems \ include_sysdir = $(includedir)/sys - if NEWLIB -NEWLIB_H_FILES = include/sys/termios.h include/sys/cdefs.h include/sys/utsname.h +NEWLIB_H_FILES = include/sys/termios.h include/sys/utsname.h endif +# FIXME: We should not install to include/sys unless using newlib. include_sys_HEADERS = \ include/sys/filio.h \ include/sys/ioccom.h \ @@ -68,6 +68,7 @@ include/sys/ioctl.h \ include/sys/sockio.h \ include/sys/termios.h \ include/sys/ttycom.h \ +include/sys/cdefs.h \ $(NEWLIB_H_FILES) PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys \ diff --git a/cpukit/libcsupport/configure.ac b/cpukit/libcsupport/configure.ac index 3df89a342f..023b7e53bc 100644 --- a/cpukit/libcsupport/configure.ac +++ b/cpukit/libcsupport/configure.ac @@ -17,7 +17,7 @@ RTEMS_ENV_RTEMSCPU RTEMS_CHECK_CPU RTEMS_CANONICAL_HOST -RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm]) +RTEMS_PROG_CC_FOR_TARGET RTEMS_CANONICALIZE_TOOLS AC_PROG_RANLIB @@ -26,7 +26,13 @@ RTEMS_CHECK_MULTIPROCESSING AM_CONDITIONAL(UNIX,test x"$RTEMS_CPU" = x"unix") AM_CONDITIONAL(NEWLIB,test x"$RTEMS_USE_NEWLIB" = x"yes") - +AS_IF([test x"$RTEMS_USE_NEWLIB" != x"yes"],[ +# FIXME: Currently, these checks are only in here to provide +# configuration-time diagnostics and are not really used. + AC_CHECK_HEADERS([sys/cdefs.h]) + AC_CHECK_HEADERS([stdint.h inttypes.h]) + AC_CHECK_DECLS([_POSIX_LOGIN_NAME_MAX],,,[#include ]) +]) AM_CONFIG_HEADER(src/config.h) # Explicitly list all Makefiles here -- cgit v1.2.3