source: rtems/c/configure.ac @ 66387986

4.104.114.84.95
Last change on this file since 66387986 was 66387986, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 11, 2001 at 7:07:37 PM

2001-10-11 Ralf Corsepius <corsepiu@…>

  • .cvsignore: Add autom4te.cache for autoconf > 2.52.
  • configure.in: Remove.
  • configure.ac: New file, generated from configure.in by autoupdate.
  • Property mode set to 100644
File size: 2.6 KB
Line 
1## Process this file with autoconf to produce a configure script.
2##
3## $Id$
4
5AC_PREREQ(2.52)
6AC_INIT
7AC_CONFIG_SRCDIR([src])
8RTEMS_TOP(..)
9AC_CONFIG_AUX_DIR(..)
10
11RTEMS_CANONICAL_TARGET_CPU
12
13AM_INIT_AUTOMAKE(rtems-c,$RTEMS_VERSION,no)
14AM_MAINTAINER_MODE
15
16## These options are used within this file.
17RTEMS_ENABLE_BARE
18RTEMS_ENABLE_RTEMSBSP(rtems_bsp)
19
20RTEMS_CHECK_CPU
21RTEMS_CANONICAL_HOST
22
23if test -z "$rtems_bsp"; then
24  RTEMS_CHECK_BSPS(rtems_bsp)
25fi
26
27for i in $rtems_bsp; do
28
29    # make sure there is a make/custom file for the bsp
30    RTEMS_CHECK_CUSTOM_BSP(i)
31 
32    RTEMS_BSP_ALIAS($i,bspdir)
33
34    # Is there code where there should be for this BSP?
35    # The bare bsp is a special case as it is not under the RTEMS_CPU path
36    case $bspdir in
37      bare)
38        bspcpudir=
39        ;;
40      *)
41        bspcpudir=$RTEMS_CPU/
42        ;;
43    esac
44     
45    if test -d "$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$bspcpudir$bspdir"; then
46      RTEMS_BSP_LIST="$RTEMS_BSP_LIST $i"
47    else
48      AC_MSG_ERROR([unable to find libbsp directory ($bspdir) for  $i])
49    fi
50done
51
52#
53# Compose the configuration arguments to be passed to c/src/configure
54#
55##
56## Partially borrowed from autoconf-2.13
57##
58
59## Adjust paths
60_RTEMS_ADJUST_SRCDIR([rtems_bsp_configure],[src])
61rtems_bsp_configure="$rtems_bsp_configure/configure"
62
63## Remove --cache-file, --srcdir and --enable-rtemsbsp arguments
64## so they do not pile up
65  rtems_bsp_configure_args=
66  for ac_arg in $ac_configure_args; do
67    if test -n "$ac_prev"; then
68      ac_prev=
69      continue
70    fi
71    case "$ac_arg" in
72    -cache-file | --cache-file | --cache-fil | --cache-fi \
73    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
74      ac_prev=cache_file ;;
75    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
76    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
77      ;;
78    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
79      ac_prev=srcdir ;;
80    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
81      ;;
82    -enable-rtemsbsp=* | --enable-rtemsbsp=*) ;;
83    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
84      ;;
85    *) rtems_bsp_configure_args="$rtems_bsp_configure_args $ac_arg" ;;
86    esac
87  done
88
89rtems_bsp_configure="$rtems_bsp_configure $rtems_bsp_configure_args"
90AC_SUBST(rtems_bsp_configure)
91
92AC_SUBST(RTEMS_BSP_LIST)
93
94AC_CONFIG_SUBDIRS(make)
95
96# Explicitly list all Makefiles here
97AC_CONFIG_FILES([Makefile
98])
99AC_OUTPUT
100
101echo
102echo target architecture: $target_cpu.
103echo available BSPs: $rtems_bsp.
104echo \'${MAKE} all\' will build the following BSPs: $RTEMS_BSP_LIST.
105echo other BSPs can be built with \'${MAKE} RTEMS_BSP=\"bsp1 bsp2 ...\"\'
106echo
Note: See TracBrowser for help on using the repository browser.