Changeset e1d8abb in rtems for c/src/lib/configure.in


Ignore:
Timestamp:
Sep 7, 1999, 1:45:03 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
a24c280
Parents:
c935c5f
Message:

Applied patch rtems-rc-19990820-6.diff.gz from
Ralf Corsepius <corsepiu@…> which converted many
Makefile.in's to Makefile.am's. This added a lot of files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/configure.in

    rc935c5f re1d8abb  
    3333dnl check target cc
    3434RTEMS_PROG_CC_FOR_TARGET
    35 
    3635RTEMS_CANONICALIZE_TOOLS
    3736
     
    3938RTEMS_I386_GAS_CODE16
    4039AM_CONDITIONAL(RTEMS_GAS_CODE16,test "$RTEMS_GAS_CODE16" = "yes");
    41 
    42 # find all the Makefiles for the BSPs
    43 makefiles="$makefiles libbsp/$RTEMS_CPU/Makefile"
    44 
    45 if test "${RTEMS_BSP}" = "bare"; then
    46 makefiles="$makefiles libbsp/bare/Makefile"
    47 fi
    4840
    4941RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
     
    5345RTEMS_BSP_ALIAS(${RTEMS_BSP},bspdir)
    5446
    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
     47AM_CONDITIONAL(UNIX,test "$RTEMS_CPU" = "unix")
    7148
    72 if test "$RTEMS_BSP" = "bare" ; then
    73   RTEMS_LIBBSP_CPU_SUBDIR="bare"
    74 else
    75   RTEMS_LIBBSP_CPU_SUBDIR='$(RTEMS_CPU)'
    76 fi
    77 AC_SUBST(RTEMS_LIBBSP_CPU_SUBDIR)
    78      
    79 if test -d "$srcdir/libbsp/$bspcpudir$bspdir"; then
    80   RTEMS_CHECK_MAKEFILE(libbsp/${bspcpudir}$bspdir)
    81   RTEMS_CHECK_MAKEFILE(libbsp/${bspcpudir}shared)
    82 
    83   # HACK: sed out bsp-tools from makefiles
    84   t="libbsp/$bspcpudir$bspdir/tools"
    85   if test -d "$srcdir/$t"; then
    86     bsptools_cfgdirs="$bsptools_cfgdirs $t"
    87     makefiles=`echo "$makefiles" | sed -e "s%$t/.*Makefile%%g"`
    88   fi
    89 else
    90   AC_MSG_ERROR([unable to find libbsp directory ($bspdir) for  ${RTEMS_BSP}])
    91 fi
    92 
    93 if test "$HAS_MP" = "yes"; then
    94   makefiles="$makefiles libbsp/shmdr/Makefile"
    95 else
    96   # HACK: sed out shmsupp/Makefile from makefiles
    97   t="libbsp/$bspcpudir$bspdir/shmsupp"
    98   makefiles=`echo "$makefiles" | sed -e "s%$t/.*Makefile%%g"`
    99 fi
    100 
    101 AM_CONDITIONAL(UNIX,test "$RTEMS_CPU" = "unix")
    10249# 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
     50AC_CONFIG_SUBDIRS(libcpu)
     51AC_CONFIG_SUBDIRS(libbsp)
    11552
    11653# If the TCP/IP stack is enabled, then find all TCP/IP Makefiles
    11754if 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"
    12057
    12158  if test "$RTEMS_HAS_RDBG" = "yes"; then
    12259    RTEMS_CHECK_RDBG(RTEMS_BSP)
     60  fi
     61fi
    12362
    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
     64if test "$HAS_RDBG" = "yes"; then
     65  cfg_subdirs="$cfg_subdirs librdbg"
    13866fi
    13967
     
    14169RTEMS_ENABLE_HWAPI
    14270if 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"
    15673  fi
     74  LIBHWAPI="libhwapi"
     75fi
     76AC_SUBST(LIBHWAPI)
     77
     78if test -d "${srcdir}/start/$RTEMS_CPU"; then
     79cfg_subdirs="$cfg_subdirs start/$RTEMS_CPU"
     80RTEMS_CPU_STARTdir="$RTEMS_CPU"
     81fi
     82AC_SUBST(RTEMS_CPU_STARTdir)
     83
     84if test "$RTEMS_CPU" != "unix"; then
     85## HACK: Suppress libchip for unix
     86cfg_subdirs="$cfg_subdirs libchip"
    15787fi
    15888
    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)
     89AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
     90AM_CONDITIONAL(HAS_LIBCHIP,test "$RTEMS_CPU" != "unix")
     91AM_CONDITIONAL(HAS_RDBG,test "$HAS_RDBG" = "yes")
    16592
    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
     93AC_CONFIG_SUBDIRS(libmisc)
    17194
    172 RTEMS_CHECK_MAKEFILE(libmisc)
     95AC_CONFIG_SUBDIRS($cfg_subdirs)
    17396
    174 AC_CONFIG_SUBDIRS($bsptools_cfgdirs)
    175 
    176 # FIXME: libhwapi needs a separate configure.in in future ;-
    177 # AC_CONFIG_SUBDIRS(libhwapi)
     97PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
     98AC_SUBST(PROJECT_INCLUDE)
    17899
    179100# try to explicitly list a Makefile here
     
    181102Makefile
    182103include/Makefile
    183 libbsp/Makefile
     104include/sys/Makefile
     105include/motorola/Makefile
     106include/zilog/Makefile
     107include/rpc/Makefile
     108include/rdbg/Makefile
     109include/rdbg/i386/Makefile
     110include/rdbg/powerpc/Makefile
    184111libc/Makefile
    185 libcpu/Makefile
    186112start/Makefile
    187 wrapup/Makefile
    188 $makefiles)
     113wrapup/Makefile)
Note: See TracChangeset for help on using the changeset viewer.