Changeset 3da33bf8 in rtems
- Timestamp:
- Nov 20, 2003, 7:02:53 AM (17 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 2ea1779
- Parents:
- 61f41e2
- Location:
- cpukit
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/ChangeLog
r61f41e2 r3da33bf8 1 2003-11-20 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 3 * acinclude.m4: New. 4 * configure.ac: Don't use AUTOHEADER to generate cpuopts.h. 5 Add local autoheader config.h. 6 * aclocal/canonical-target-name.m4: Require AC_CANONICAL_HOST. 7 * aclocal/enable-inlines.m4: Remove USE_MACROS (Unused). 8 1 9 2003-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 10 -
cpukit/aclocal/canonical-target-name.m4
r61f41e2 r3da33bf8 10 10 11 11 AC_DEFUN([RTEMS_CANONICAL_TARGET_CPU], 12 [ 13 AC_CANONICAL_HOST 12 [AC_REQUIRE([AC_CANONICAL_HOST]) 14 13 AC_MSG_CHECKING(rtems target cpu) 15 14 case "${host}" in -
cpukit/aclocal/enable-inlines.m4
r61f41e2 r3da33bf8 11 11 AC_SUBST(RTEMS_USE_MACROS)dnl 12 12 13 if test x"${RTEMS_USE_MACROS}" = x"yes"; 14 then 15 AC_DEFINE_UNQUOTED(USE_MACROS,1,[if using macros]) 16 else 13 AS_IF([test x"${RTEMS_USE_MACROS}" = x"yes"],[],[ 17 14 AC_DEFINE_UNQUOTED(USE_INLINES,1,[if using inlines]) 18 fi 15 ]) 19 16 20 17 -
cpukit/configure.ac
r61f41e2 r3da33bf8 80 80 # HACK: We should use a feature-based configuration. 81 81 AS_IF([test x"${RTEMS_CPU}" = x"unix"],[ 82 AC_DEFINE_UNQUOTED([RTEMS_UNIX],[1],[to indicate RTEMS unix])83 82 # HACK: silently accept --enable-unixlib 84 83 test -n "${enable_unixlib}" || enable_unixlib="yes" 85 84 ]) 86 87 AS_IF([test x"${enable_unixlib}" = x"yes"],88 [AC_DEFINE_UNQUOTED([RTEMS_UNIXLIB],[1],89 [to indicate RTEMS using RTEMS's unixlib])]90 )91 85 92 86 # BSD-isms, used throughout the sources … … 97 91 AC_CHECK_FUNCS([isascii fileno]) 98 92 99 AM_CONFIG_HEADER([score/include/rtems/score/cpuopts-tmp.h],[ 100 echo "/* target cpu dependent options file */" >$tmp/config.h 101 echo "/* automatically generated -- DO NOT EDIT!! */" >>$tmp/config.h 102 echo >>$tmp/config.h 103 echo "#ifndef __CPU_OPTIONS_h" >>$tmp/config.h 104 echo "#define __CPU_OPTIONS_h" >>$tmp/config.h 105 echo >>$tmp/config.h 106 sed -e '/.*PACKAGE.*/d' score/include/rtems/score/cpuopts-tmp.h >> $tmp/config.h 107 echo >>$tmp/config.h 108 echo "#endif" >>$tmp/config.h 109 AS_IF([cmp -s score/include/rtems/score/cpuopts.h $tmp/config.h 2>/dev/null], 110 [AC_MSG_NOTICE([score/include/rtems/score/cpuopts.h is unchanged]) 111 rm -f $tmp/config.h], 112 [AC_MSG_NOTICE([creating score/include/rtems/score/cpuopts.h]) 113 rm -f score/include/rtems/score/cpuopts.h 114 mv $tmp/config.h score/include/rtems/score/cpuopts.h]) 93 cat << EOF > cpuopts.tmp 94 /* target cpu dependent options file */ 95 /* automatically generated -- DO NOT EDIT!! */ 96 #ifndef __CPU_OPTIONS_h 97 #define __CPU_OPTIONS_h 98 EOF 99 100 RTEMS_CPUOPT([USE_INLINES], 101 [! test x"${RTEMS_USE_MACROS}" = x"yes"], 102 [1], 103 [if using inlines]) 104 105 RTEMS_CPUOPT([RTEMS_ITRON_API], 106 [test x"$rtems_cv_HAS_ITRON_API" = x"yes"], 107 [1], 108 [if itron api is supported]) 109 110 RTEMS_CPUOPT([RTEMS_MULTILIBS], 111 [test x"$RTEMS_MULTILIBS" = x"yes"], 112 [1], 113 [using multilib'ed RTEMS]) 114 115 RTEMS_CPUOPT([RTEMS_MULTIPROCESSING], 116 [test x"$HAS_MP" = "yes"], 117 [1], 118 [if multiprocessing is enabled]) 119 120 RTEMS_CPUOPT([RTEMS_NEWLIB], 121 [test x"$RTEMS_USE_NEWLIB" = x"yes"], 122 [1], 123 [if using newlib]) 124 125 RTEMS_CPUOPT([RTEMS_POSIX_API], 126 [test x"$HAS_POSIX_API" = x"yes"], 127 [1], 128 [if posix api is supported]) 129 130 RTEMS_CPUOPT([RTEMS_UNIX], 131 [test x"$RTEMS_CPU" = x"unix"], 132 [1], 133 [to indicate RTEMS unix]) 134 135 RTEMS_CPUOPT([RTEMS_UNIXLIB], 136 [test x"${enable_unixlib}" = x"yes"], 137 [1], 138 [to indicate RTEMS using RTEMS's unixlib]) 139 140 RTEMS_CPUOPT([RTEMS_VERSION], 141 [true], 142 [\"]_RTEMS_VERSION[\"], 143 [RTEMS version string]) 144 145 echo >> cpuopts.tmp 146 echo "#endif" >> cpuopts.tmp 147 148 AS_MKDIR_P(score/include/rtems/score) 149 AS_IF([test -f score/include/rtems/score/cpuopts.h], 150 [ 151 AS_IF([cmp -s score/include/rtems/score/cpuopts.h cpuopts.tmp 2>/dev/null], 152 [ 153 AC_MSG_NOTICE([score/include/rtems/score/cpuopts.h is unchanged]) 154 rm -f cpuopts.tmp 155 ],[ 156 AC_MSG_NOTICE([creating score/include/rtems/score/cpuopts.h]) 157 rm -f score/include/rtems/score/cpuopts.h 158 mv cpuopts.tmp score/include/rtems/score/cpuopts.h 159 ]) 160 ],[ 161 AC_MSG_NOTICE([creating score/include/rtems/score/cpuopts.h]) 162 rm -f score/include/rtems/score/cpuopts.h 163 mv cpuopts.tmp score/include/rtems/score/cpuopts.h 115 164 ]) 116 165 117 166 AC_ENABLE_MULTILIB([Makefile],[..]) 118 119 ## HACK: Add a define to cpuopts.h to indicate using multilibs120 ## Can be applied to produce compiler errors if using121 ## multilib-incompatible settings somewhere else (eg. bspopts.h).122 AS_IF([test x"${enable_multilib}" = x"yes"],[123 AC_DEFINE_UNQUOTED([RTEMS_MULTILIBS],[1],[using multilib'ed RTEMS])124 ])125 167 126 168 # libmisc/shell/* wants to assign file descriptors to stdio file descriptors. … … 231 273 AM_CONDITIONAL([LIBSHELL],[test x"$HAVE_ASSIGNABLE_STDIO" = x"yes"]) 232 274 AM_CONDITIONAL([LIBSERDBG],[test x"$rtems_cv_cc_attribute_weak" = x"yes"]) 275 276 AC_CONFIG_HEADER(config.h) 233 277 234 278 # Explicitly list all Makefiles here
Note: See TracChangeset
for help on using the changeset viewer.