From 6c39eca47a9af6de451c65dc43242e29434b5b1f Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 18 Nov 2002 23:53:14 +0000 Subject: 2002-11-18 Ralf Corsepius * configure.ac: Check for sys/cdefs.h, Add NEED_SYS_CDEFS_H. Add check for CHAR_BIT. * Makefile.am: Conditionally install sys/cdefs.h iff using newlib or if the host does not provide sys/cdefs.h (Fixes Linux/posix). --- cpukit/libcsupport/Makefile.am | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cpukit/libcsupport/Makefile.am') diff --git a/cpukit/libcsupport/Makefile.am b/cpukit/libcsupport/Makefile.am index 177acf542d..e021c220e8 100644 --- a/cpukit/libcsupport/Makefile.am +++ b/cpukit/libcsupport/Makefile.am @@ -60,6 +60,10 @@ if NEWLIB NEWLIB_H_FILES = include/sys/termios.h include/sys/utsname.h endif +if NEED_SYS_CDEFS_H +SYS_H_FILES = include/sys/cdefs.h +endif + # FIXME: We should not install to include/sys unless using newlib. include_sys_HEADERS = \ include/sys/filio.h \ @@ -68,7 +72,7 @@ include/sys/ioctl.h \ include/sys/sockio.h \ include/sys/termios.h \ include/sys/ttycom.h \ -include/sys/cdefs.h \ +$(SYS_H_FILES) \ $(NEWLIB_H_FILES) PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys \ -- cgit v1.2.3