Changeset e1d8abb in rtems for c/src/lib/configure.in
- Timestamp:
- 09/07/99 13:45:03 (24 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- a24c280
- Parents:
- c935c5f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/configure.in
rc935c5f re1d8abb 33 33 dnl check target cc 34 34 RTEMS_PROG_CC_FOR_TARGET 35 36 35 RTEMS_CANONICALIZE_TOOLS 37 36 … … 39 38 RTEMS_I386_GAS_CODE16 40 39 AM_CONDITIONAL(RTEMS_GAS_CODE16,test "$RTEMS_GAS_CODE16" = "yes"); 41 42 # find all the Makefiles for the BSPs43 makefiles="$makefiles libbsp/$RTEMS_CPU/Makefile"44 45 if test "${RTEMS_BSP}" = "bare"; then46 makefiles="$makefiles libbsp/bare/Makefile"47 fi48 40 49 41 RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) … … 53 45 RTEMS_BSP_ALIAS(${RTEMS_BSP},bspdir) 54 46 55 # Is there code where there should be for this BSP? 56 # The bare bsp is a special case as it is not under the RTEMS_CPU path 57 case ${RTEMS_BSP} in 58 bare) 59 bspcpudir= 60 if test "X${BARE_CPU_CFLAGS}" = "X" ; then 61 AC_MSG_ERROR([--enable-bare-cpu-cflags not specified for bare bsp]) 62 fi 63 if test "X${BARE_CPU_MODEL}" = "X" ; then 64 AC_MSG_ERROR([--enable-bare-cpu-model not specified for bare bsp]) 65 fi 66 ;; 67 *) 68 bspcpudir=$RTEMS_CPU/ 69 ;; 70 esac 47 AM_CONDITIONAL(UNIX,test "$RTEMS_CPU" = "unix") 71 48 72 if test "$RTEMS_BSP" = "bare" ; then73 RTEMS_LIBBSP_CPU_SUBDIR="bare"74 else75 RTEMS_LIBBSP_CPU_SUBDIR='$(RTEMS_CPU)'76 fi77 AC_SUBST(RTEMS_LIBBSP_CPU_SUBDIR)78 79 if test -d "$srcdir/libbsp/$bspcpudir$bspdir"; then80 RTEMS_CHECK_MAKEFILE(libbsp/${bspcpudir}$bspdir)81 RTEMS_CHECK_MAKEFILE(libbsp/${bspcpudir}shared)82 83 # HACK: sed out bsp-tools from makefiles84 t="libbsp/$bspcpudir$bspdir/tools"85 if test -d "$srcdir/$t"; then86 bsptools_cfgdirs="$bsptools_cfgdirs $t"87 makefiles=`echo "$makefiles" | sed -e "s%$t/.*Makefile%%g"`88 fi89 else90 AC_MSG_ERROR([unable to find libbsp directory ($bspdir) for ${RTEMS_BSP}])91 fi92 93 if test "$HAS_MP" = "yes"; then94 makefiles="$makefiles libbsp/shmdr/Makefile"95 else96 # HACK: sed out shmsupp/Makefile from makefiles97 t="libbsp/$bspcpudir$bspdir/shmsupp"98 makefiles=`echo "$makefiles" | sed -e "s%$t/.*Makefile%%g"`99 fi100 101 AM_CONDITIONAL(UNIX,test "$RTEMS_CPU" = "unix")102 49 # find all the CPU dependent library Makefiles 103 RTEMS_CHECK_MAKEFILE(libcpu/$RTEMS_CPU) 104 105 dnl Workaround for go32 106 case "${target}" in 107 changequote(,)dnl 108 i[3456]86-go32-rtems*) 109 changequote([,])dnl 110 ;; 111 *) 112 RTEMS_CHECK_MAKEFILE(start/$RTEMS_CPU) 113 ;; 114 esac 50 AC_CONFIG_SUBDIRS(libcpu) 51 AC_CONFIG_SUBDIRS(libbsp) 115 52 116 53 # If the TCP/IP stack is enabled, then find all TCP/IP Makefiles 117 54 if test "$HAS_NETWORKING" = "yes"; then 118 RTEMS_CHECK_MAKEFILE(libnetworking)119 RTEMS_CHECK_MAKEFILE(librpc)55 cfg_subdirs="$cfg_subdirs libnetworking" 56 cfg_subdirs="$cfg_subdirs librpc" 120 57 121 58 if test "$RTEMS_HAS_RDBG" = "yes"; then 122 59 RTEMS_CHECK_RDBG(RTEMS_BSP) 60 fi 61 fi 123 62 124 if test "$HAS_RDBG" = "yes"; then 125 AC_CHECK_PROG(RPCGEN,rpcgen,rpcgen) 126 AC_PROG_AWK 127 if test -z "$RPCGEN"; then 128 AC_MSG_ERROR([missing rpcgen, required to build librdbg]) 129 fi 130 if test -z "$AWK"; then 131 AC_MSG_ERROR([missing awk, required to build librdbg]) 132 fi 133 fi 134 if test "$HAS_RDBG" = "yes"; then 135 RTEMS_CHECK_MAKEFILE(librdbg) 136 fi 137 fi 63 64 if test "$HAS_RDBG" = "yes"; then 65 cfg_subdirs="$cfg_subdirs librdbg" 138 66 fi 139 67 … … 141 69 RTEMS_ENABLE_HWAPI 142 70 if test "$RTEMS_HAS_HWAPI" = "yes"; then 143 AC_MSG_CHECKING(whether libwapi is present) 144 if test -f ${srcdir}/libhwapi/Makefile.in ; then 145 AC_MSG_RESULT(yes) 146 makefiles="$makefiles libhwapi/Makefile" 147 RTEMS_CHECK_MAKEFILE(libhwapi/analog) 148 RTEMS_CHECK_MAKEFILE(libhwapi/discrete) 149 RTEMS_CHECK_MAKEFILE(libhwapi/drivers) 150 RTEMS_CHECK_MAKEFILE(libhwapi/non_volatile_memory) 151 RTEMS_CHECK_MAKEFILE(libhwapi/serial) 152 RTEMS_CHECK_MAKEFILE(libhwapi/support) 153 RTEMS_CHECK_MAKEFILE(libhwapi/wrapup) 154 else 155 AC_MSG_ERROR(No source code found for the HWAPI) 71 if test -d "${srcdir}/libhwapi"; then 72 cfg_subdirs="$cfg_subdirs libhwapi" 156 73 fi 74 LIBHWAPI="libhwapi" 75 fi 76 AC_SUBST(LIBHWAPI) 77 78 if test -d "${srcdir}/start/$RTEMS_CPU"; then 79 cfg_subdirs="$cfg_subdirs start/$RTEMS_CPU" 80 RTEMS_CPU_STARTdir="$RTEMS_CPU" 81 fi 82 AC_SUBST(RTEMS_CPU_STARTdir) 83 84 if test "$RTEMS_CPU" != "unix"; then 85 ## HACK: Suppress libchip for unix 86 cfg_subdirs="$cfg_subdirs libchip" 157 87 fi 158 88 159 AC_SUBST(RTEMS_HAS_CPLUSPLUS) 160 AC_SUBST(RTEMS_USE_GCC272) 161 AC_SUBST(CC_CFLAGS_DEFAULT) 162 AC_SUBST(CC_CFLAGS_DEBUG_V) 163 AC_SUBST(CC_CFLAGS_PROFILE_V) 164 AC_SUBST(CC_LDFLAGS_PROFILE_V) 89 AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes") 90 AM_CONDITIONAL(HAS_LIBCHIP,test "$RTEMS_CPU" != "unix") 91 AM_CONDITIONAL(HAS_RDBG,test "$HAS_RDBG" = "yes") 165 92 166 # pick up all the Makefiles in required parts of the tree 167 if test "$RTEMS_CPU" != "unix"; then 168 ## HACK: Suppress libchip for unix 169 RTEMS_CHECK_MAKEFILE(libchip) 170 fi 93 AC_CONFIG_SUBDIRS(libmisc) 171 94 172 RTEMS_CHECK_MAKEFILE(libmisc)95 AC_CONFIG_SUBDIRS($cfg_subdirs) 173 96 174 AC_CONFIG_SUBDIRS($bsptools_cfgdirs) 175 176 # FIXME: libhwapi needs a separate configure.in in future ;- 177 # AC_CONFIG_SUBDIRS(libhwapi) 97 PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include" 98 AC_SUBST(PROJECT_INCLUDE) 178 99 179 100 # try to explicitly list a Makefile here … … 181 102 Makefile 182 103 include/Makefile 183 libbsp/Makefile 104 include/sys/Makefile 105 include/motorola/Makefile 106 include/zilog/Makefile 107 include/rpc/Makefile 108 include/rdbg/Makefile 109 include/rdbg/i386/Makefile 110 include/rdbg/powerpc/Makefile 184 111 libc/Makefile 185 libcpu/Makefile186 112 start/Makefile 187 wrapup/Makefile 188 $makefiles) 113 wrapup/Makefile)
Note: See TracChangeset
for help on using the changeset viewer.