source: rtems/c/configure.ac @ c44312d

4.104.114.84.95
Last change on this file since c44312d was 7dcc3fe, checked in by Ralf Corsepius <ralf.corsepius@…>, on 08/11/03 at 14:20:43

2003-08-11 Ralf Corsepius <corsepiu@…>

  • configure.ac: Use rtems-bugs@… as bug report email address.
  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[66387986]1## Process this file with autoconf to produce a configure script.
2##
3## $Id$
[eb299afc]4
[9b5c258]5AC_PREREQ(2.57)
[7dcc3fe]6AC_INIT([rtems-c],[_RTEMS_VERSION],[rtems-bugs@rtems.com])
[66387986]7AC_CONFIG_SRCDIR([src])
[eb299afc]8RTEMS_TOP(..)
9
10RTEMS_CANONICAL_TARGET_CPU
11
[ccd81b60]12AM_INIT_AUTOMAKE([no-define foreign 1.7.2])
[eb299afc]13AM_MAINTAINER_MODE
14
[66387986]15## These options are used within this file.
[eb299afc]16RTEMS_ENABLE_BARE
17RTEMS_ENABLE_RTEMSBSP(rtems_bsp)
18
19RTEMS_CHECK_CPU
20RTEMS_CANONICAL_HOST
21
[d049568]22AS_IF([test -z "$rtems_bsp"],
23  [RTEMS_CHECK_BSPS(rtems_bsp)])
[eb299afc]24
25for i in $rtems_bsp; do
26
27    # make sure there is a make/custom file for the bsp
28    RTEMS_CHECK_CUSTOM_BSP(i)
29 
30    RTEMS_BSP_ALIAS($i,bspdir)
31
32    # Is there code where there should be for this BSP?
33    # The bare bsp is a special case as it is not under the RTEMS_CPU path
[b62a92c]34    case $bspdir in
[eb299afc]35      bare)
36        bspcpudir=
37        ;;
38      *)
39        bspcpudir=$RTEMS_CPU/
40        ;;
41    esac
42     
43    if test -d "$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$bspcpudir$bspdir"; then
44      RTEMS_BSP_LIST="$RTEMS_BSP_LIST $i"
45    else
46      AC_MSG_ERROR([unable to find libbsp directory ($bspdir) for  $i])
47    fi
48done
49
50#
51# Compose the configuration arguments to be passed to c/src/configure
52#
53##
54## Partially borrowed from autoconf-2.13
55##
56
57## Adjust paths
[eab41f63]58_RTEMS_ADJUST_SRCDIR([rtems_bsp_configure],[src])
59rtems_bsp_configure="$rtems_bsp_configure/configure"
[2fe08ccb]60  RTEMS_CONFIGURE_ARGS_QUOTE([rtems_bsp_configure_args],
[45789f2]61    [-enable-rtemsbsp=* | --enable-rtemsbsp=* ) ;;])
[eb299afc]62
63rtems_bsp_configure="$rtems_bsp_configure $rtems_bsp_configure_args"
64AC_SUBST(rtems_bsp_configure)
65
66AC_SUBST(RTEMS_BSP_LIST)
67
[70810dc]68# Explicitly list all Makefiles here
[d049568]69AC_CONFIG_FILES([Makefile])
[66387986]70AC_OUTPUT
[eb299afc]71
72echo
73echo target architecture: $target_cpu.
74echo available BSPs: $rtems_bsp.
[7b79761]75echo \'${MAKE} all\' will build the following BSPs: $RTEMS_BSP_LIST.
76echo other BSPs can be built with \'${MAKE} RTEMS_BSP=\"bsp1 bsp2 ...\"\'
[eb299afc]77echo
Note: See TracBrowser for help on using the repository browser.