source: rtems/configure.in @ 2e26bbd

4.104.114.84.95
Last change on this file since 2e26bbd was 2e26bbd, checked in by Joel Sherrill <joel.sherrill@…>, on 11/19/98 at 20:09:01

Patch from Ralf Corsepius <corsepiu@…>:

Here is a cosmetic patch which corrects a few spelling problems in parts
written by me.

Apparently, I must have written these under the influence of ether (:-)

  • Property mode set to 100644
File size: 15.6 KB
RevLine 
[254b4450]1dnl Process this file with autoconf to produce a configure script.
[6f9c75c3]2dnl
3dnl  $Id$
4
[254b4450]5AC_PREREQ(2.12)
6AC_INIT(README)
7
8dnl Checks for programs.
9AC_PROG_MAKE_SET
10AC_CANONICAL_SYSTEM
11AC_ARG_WITH(cross-host,[  --with-cross-host=HOST      host (cygnus)], \
12host=$withval)
13
[91333c2]14AC_ARG_ENABLE(gmake-print-directory, \
15[  --enable-gmake-print-directory    enable GNU Make's print directory], \
16[case "${enableval}" in
[39ffc7d]17  yes) RTEMS_USE_OWN_PDIR=no ;;
18  no) RTEMS_USE_OWN_PDIR=yes ;;
[91333c2]19  *)  AC_MSG_ERROR(bad value ${enableval} for gmake-print-directory option) ;;
20esac],[RTEMS_USE_OWN_PDIR=yes])
21
[254b4450]22AC_ARG_ENABLE(posix, \
[ba1a2af9]23[  --enable-posix                   enable posix interface], \
[69df7da]24[case "${enableval}" in
25  yes) RTEMS_HAS_POSIX_API=yes ;;
26  no) RTEMS_HAS_POSIX_API=no ;;
[ba1a2af9]27  *)  AC_MSG_ERROR(bad value ${enableval} for enable-posix option) ;;
[69df7da]28esac],[RTEMS_HAS_POSIX_API=yes])
[254b4450]29
[0280cb6]30AC_ARG_ENABLE(networking, \
31[  --enable-networking                enable TCP/IP stack], \
32[case "${enableval}" in
33  yes) RTEMS_HAS_NETWORKING=yes ;;
34  no) RTEMS_HAS_NETWORKING=no ;;
35  *)  AC_MSG_ERROR(bad value ${enableval} for enable-networking option) ;;
36esac],[RTEMS_HAS_NETWORKING=yes])
[1f0f3e35]37
[254b4450]38AC_ARG_ENABLE(rtems-inlines, \
[ba1a2af9]39[  --enable-rtems-inlines           enable RTEMS inline functions (use macros)], \
[69df7da]40[case "${enableval}" in
[ba1a2af9]41  yes) RTEMS_USE_MACROS=no ;;
42  no) RTEMS_USE_MACROS=yes ;;
[69df7da]43  *)  AC_MSG_ERROR(bad value ${enableval} for disable-rtems-inlines option) ;;
44esac],[RTEMS_USE_MACROS=no])
[254b4450]45
[3771cc6e]46AC_ARG_ENABLE(cxx, \
47[  --enable-cxx            enable C++ support, and build the rtems++ library], \
[3f70e3c]48[case "${enableval}" in
[91333c2]49  yes) RTEMS_HAS_CPLUSPLUS=yes ;;
[37717818]50  no) RTEMS_HAS_CPLUSPLUS=no   ;;
[3771cc6e]51  *)  AC_MSG_ERROR(bad value ${enableval} for enable-cxx option) ;;
[37717818]52esac], [RTEMS_HAS_CPLUSPLUS=no])
[91333c2]53
[971cd22]54AC_ARG_ENABLE(gcc28, \
[e412bae]55[  --enable-gcc28                   enable use of gcc 2.8.x features], \
[69df7da]56[case "${enableval}" in
57  yes) RTEMS_USE_GCC272=no ;;
58  no) RTEMS_USE_GCC272=yes ;;
59  *)  AC_MSG_ERROR(bad value ${enableval} for gcc-28 option) ;;
[fcb114c1]60esac],[RTEMS_USE_GCC272=no])
[e412bae]61
62AC_ARG_ENABLE(libcdir, \
63[  --enable-libcdir=directory       set the directory for the C library], \
64[ RTEMS_LIBC_DIR="${enableval}" ; \
65test -d ${enableval} || AC_MSG_ERROR("$enableval is not a directory" ) ] )
66
[550ca7d5]67AC_ARG_ENABLE(bare-cpu-cflags,
68[  --enable-bare-cpu-cflags          \
69         specify a particular cpu cflag (bare bsp specific)],
[bd5e4f3b]70[case "${enableval}" in
[550ca7d5]71  no) BARE_CPU_CFLAGS="" ;;
72  *)    BARE_CPU_CFLAGS="${enableval}" ;;
[bd5e4f3b]73esac],
[550ca7d5]74[BARE_CPU_CFLAGS=""])
[bd5e4f3b]75
[550ca7d5]76AC_ARG_ENABLE(bare-cpu-model,
77[  --enable-bare-cpu-model              \
78         specify a particular cpu model (bare bsp specific)],
[bd5e4f3b]79[case "${enableval}" in
[550ca7d5]80  no)   BARE_CPU_MODEL="" ;;
81  *)    BARE_CPU_MODEL="${enableval}" ;;
[bd5e4f3b]82esac],
[550ca7d5]83[BARE_CPU_MODEL=""])
[bd5e4f3b]84
[254b4450]85RTEMS_PREFIX=${target_cpu}-${target_vendor}
86
[a50148a]87dnl BEGIN configure.host.in
88
89AC_PATH_PROG(CAT,cat)
90AC_PATH_PROG(RM,rm)
91AC_PATH_PROG(CP,cp)
92AC_PATH_PROG(MV,mv)
93AC_PATH_PROG(LN,ln)
[37717818]94AC_PROG_LN_S
[a50148a]95AC_PATH_PROG(CHMOD,chmod)
96AC_PATH_PROG(SORT,sort)
[f95d2b53]97AC_PROG_INSTALL
[11cfb6f7]98AC_PATH_PROG(PERL,perl)
99if test -z "$PERL" ; then
100AC_MSG_WARN(
101[***]
102[   perl was not found]
103[   Note: Some tools will not be built.])
104fi
[a50148a]105
106dnl check mkdir behaviour, try to get mkdir -p -m 0755
107RTEMS_PATH_MKDIR
108RTEMS_PROG_MKDIR_M
109RTEMS_PROG_MKDIR_P
110test "$rtems_cv_prog_MKDIR_P" = "yes" && MKDIR="$MKDIR -p"
[f205fe6d]111#test "$rtems_cv_prog_MKDIR_M" = "yes" && MKDIR="$MKDIR -m 0755"
[a50148a]112
113AC_PATH_PROG(TOUCH,touch)
114AC_PATH_PROG(CMP,cmp)
115
116AC_PATH_PROG(SED,sed)
117AC_PATH_PROGS(M4,gm4 m4)
118
119dnl NOTE: prefer bash over ksh over sh
120AC_PATH_PROGS(KSH,bash ksh sh)
121
122if test -z "$KSH"; then
123dnl NOTE: This cannot happen -- /bin/sh must always exist
124AC_MSG_ERROR(
125[***]
126[    Cannot determine a usable shell bash/ksh/sh]
127[    Please contact your system administrator] );
128fi
129
[1670eede]130dnl BEGIN configure.target.in
131
[37717818]132dnl echo "TARGET"
133dnl echo "    cpu    --> $target_cpu"
134dnl echo "    os     --> $target_os"
135dnl echo "    vendor --> $target_vendor"
[1670eede]136
137dnl canonicalize target name
138dnl NOTE: Most rtems targets do not fullfil autoconf
139dnl targets naming conventions "processor-vendor-os"
140dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
141dnl and we have to fix it for rtems ourselves
[37717818]142dnl
143dnl The original plan was to do CPU-BSP-rtems or CPU-rtems to
144dnl imply all BSPs.  Eventually we would like to build a collection
145dnl of CPU model specific RTEMS libraries which in conjunction with
146dnl a BSP library would be used to link an application.
[872cc62]147
[744df795]148RTEMS_HOST=$host_os
149
[254b4450]150case "${target}" in
151  # hpux unix port should go here
152  i[[3456]]86-go32-rtems*)
[1670eede]153        target_cpu=i386
[254b4450]154        rtems_bsp="go32 go32_p5"
[37717818]155        skip_startfiles="yes"
[254b4450]156        RTEMS_HAS_POSIX_API=no
157        ;;
158  i[[3456]]86-pc-linux*)         # unix "simulator" port
[1670eede]159        target_cpu=unix
[744df795]160        RTEMS_HOST=Linux
[2758c9f2]161        # override these settings
162        RTEMS_HAS_POSIX_API=no
[254b4450]163        ;;
[98100d2]164  i[[3456]]86-*freebsd2*) # unix "simulator" port
[9a6994b4]165        target_cpu=unix
166        RTEMS_HOST=FreeBSD
167        # override these settings
168        RTEMS_HAS_POSIX_API=no
169        ;;
[2bb990f]170  no_cpu-*rtems*)
[1670eede]171        target_cpu=no_cpu
[475fb331]172        RTEMS_HAS_POSIX_API=no
[254b4450]173        ;;
[d7c9cbe4]174  ppc*-*rtems*)
175        target_cpu=powerpc
[bd5e4f3b]176        ;;
[254b4450]177  sparc-sun-solaris*)             # unix "simulator" port
[1670eede]178        target_cpu=unix
[744df795]179        RTEMS_HOST=Solaris
[2758c9f2]180        # override these settings
181        RTEMS_HAS_POSIX_API=no
[254b4450]182        ;;
[1670eede]183  *)
184        RTEMS_CANONICAL_TARGET_CPU
[254b4450]185        ;;
186esac
187
[b9ca4ba]188# Override the set of BSPs to be built.
189AC_ARG_ENABLE(rtemsbsp, \
190  [  --enable-rtemsbsp=bsp1 bsp2 ..   BSPs to include in build], \
191      rtems_bsp=$enableval \
192)
193
[37717818]194# Is this a supported CPU?
[1670eede]195AC_MSG_CHECKING([if cpu $target_cpu is supported])
196if test -d "$srcdir/c/src/exec/score/cpu/$target_cpu"; then
197  AC_MSG_RESULT(yes)
[37717818]198  makefiles="$makefiles c/src/exec/score/cpu/$target_cpu/Makefile"
[1670eede]199else
200  AC_MSG_ERROR(no)
201fi
202
[2efdd08]203RTEMS_TOOL_PREFIX
[3771cc6e]204
205dnl check target cc
206RTEMS_PROG_CC
[0b76723]207dnl check if the compiler supports --specs
208RTEMS_GCC_SPECS
209dnl check if the target compiler may use --pipe
210RTEMS_GCC_PIPE
[3771cc6e]211
212dnl check if the compiler supports --specs if gcc28 is requested
213if test "$RTEMS_USE_GCC272" != "yes" ; then
214  if test "$rtems_cv_gcc_specs" = "no"; then
215    AC_MSG_WARN([*** disabling --enable-gcc28])
216     RTEMS_USE_GCC272=yes
217  fi
218fi
[2efdd08]219test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe"
[3771cc6e]220
221dnl check for g++
222if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
223  RTEMS_PROG_CXX
[0b76723]224  if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then
225    AC_MSG_ERROR([***]
226     [Inconsistency in compiler configuration:]
227     [Target C compiler and Target C++ compiler]
[2e26bbd]228     [must both either be cross compilers or native compilers]
[2efdd08]229     [Hint: If building a posix bsp: LD_LIBRARY_PATH?] )
[0b76723]230  fi
[3771cc6e]231else
232  CXX_FOR_TARGET="no"
233fi
234
235RTEMS_CANONICALIZE_TOOLS
236
[2c3840b]237dnl if this is an i386, does gas have good code16 support?
238RTEMS_I386_GAS_CODE16
239
[3771cc6e]240dnl check host cc
241AC_PROG_CC
242
[98100d2]243RTEMS_CYGWIN32
244RTEMS_EXEEXT
245
246dnl FIXME: HACK for egcs/cygwin mixing '\\' and '/' in gcc -print-*
247case $host_os in
248*cygwin32*)     GCCSED="| sed 's%\\\\%/%g'" ;;
249*) ;;
250esac
251AC_SUBST(GCCSED)
252
[cce81a7]253dnl FIXME: This is a kludge
[946b3cb]254dnl Set flags to settings all gcc variants are assumed to accept.
255if test "$ac_cv_prog_gcc" = "yes"; then
[cce81a7]256dnl Add -Wall if using gcc as host compiler
[946b3cb]257  CC_CFLAGS_DEFAULT=-Wall
258dnl Add -pg to profile flags, unless specified in the environment
259  CC_CFLAGS_PROFILE_V=${CC_CFLAGS_PROFILE_V-"-pg"}
260dnl propagate cflags to ldflags, unless specified in the environment
261  CC_LDFLAGS_PROFILE_V=${CC_LDFLAGS_PROFILE_V-$CC_CFLAGS_PROFILE_V}
262fi
263
[cce81a7]264dnl Add -g if the host compiler accepts -g, assume -g means debugging
[946b3cb]265test "$ac_cv_prog_cc_g" = "yes" && CC_CFLAGS_DEBUG_V=${CC_CFLAGS_DEBUG_V-"-g"}
[cce81a7]266
[3771cc6e]267dnl check for host library functions
268dnl NOTE: must be called after AC_PROG_CC
269AC_CHECK_FUNCS(strerror)
270
[613ab62]271dnl check for SysV IPC used by simulators
272if test "$target_cpu" = "unix" ; then
273  RTEMS_SYSV_SEM
274  if test "$rtems_cv_sysv_sem" != "yes" ; then
275    AC_MSG_ERROR([System V semaphores don't work, required by simulator])
276  fi
277  RTEMS_SYSV_SHM
278  if test "$rtems_cv_sysv_shm" != "yes" ; then
279    AC_MSG_ERROR([System V shared memory doesn't work, required by simulator])
280  fi
281  RTEMS_SYSV_MSG
282  if test "$rtems_cv_sysv_msg" != "yes" ; then
283    AC_MSG_ERROR([System V messages don't work, required by simulator])
284  fi
285fi
286
[37717818]287# find all the Executive Makefiles
[744df795]288RTEMS_CHECK_MAKEFILE(c/src/exec/score/tools/$target_cpu)
[37717818]289RTEMS_CHECK_MAKEFILE(c/src/exec/rtems)
290RTEMS_CHECK_MAKEFILE(c/src/exec/sapi)
[b9ca4ba]291
[ba1a2af9]292if test "$RTEMS_HAS_POSIX_API" = "yes"; then
[b9ca4ba]293  RTEMS_CHECK_MAKEFILE(c/src/exec/posix)
[ba1a2af9]294  makefiles="$makefiles c/src/exec/wrapup/posix/Makefile"
[b9ca4ba]295fi
[1670eede]296
[37717818]297# find all the Makefiles for the BSPs
[1670eede]298if test -d "$srcdir/c/src/lib/libbsp/$target_cpu"; then
[37717818]299  makefiles="$makefiles c/src/lib/libbsp/$target_cpu/Makefile"
300
301  if test -z "$rtems_bsp"; then
302    AC_MSG_CHECKING([for bsps])
303    files=`ls $srcdir/c/src/lib/libbsp/$target_cpu`
304    for file in $files; do
305      case $file in
306        shared*);;
307        Makefile*);;
308        READ*);;
309        CVS*);;
[674c900]310        pxfl*);;
311        go32*);;       # so the i386 port can pick up the other Makefiles
312        # Now account for BSPs with build variants
313        gen68360)      rtems_bsp="$rtems_bsp gen68360 gen68360_040";;
314        p4000)         rtems_bsp="$rtems_bsp p4600 p4650";;
315        mvme162)       rtems_bsp="$rtems_bsp mvme162 mvme162lx";;
[37717818]316        *) rtems_bsp="$rtems_bsp $file";;
317      esac;
318    done
[674c900]319
[bd5e4f3b]320    makefiles="$makefiles c/src/lib/libbsp/bare/Makefile"
321
[300c8a76]322    AC_MSG_RESULT([$rtems_bsp done])
[37717818]323  fi
324
325  # collect makefiles for each bsp
326  for i in $rtems_bsp; do
[b9ca4ba]327    # make sure there is a make/custom file for the bsp
[6d6f1b34]328    if test ! -r "$srcdir/make/custom/${i}.cfg"; then
[b9ca4ba]329      AC_MSG_ERROR([no make/custom/${i}.cfg file for BSP $i])
330    fi
[674c900]331 
[b9ca4ba]332    # account for "aliased" bsps which share source code
333    case $i in
334      mvme162lx)    bspdir=mvme162  ;;  # mvme162 board variant
335      gen68360_040) bspdir=gen68360 ;;  # 68360 in companion mode
336      go32_p5)      bspdir=go32     ;;  # go32 on Pentium class CPU
337      p4600)        bspdir=p4000    ;;  # p4000 board with IDT 4600
338      p4650)        bspdir=p4000    ;;  # p4000 board with IDT 4650
339      *)            bspdir=$i;;
340    esac
341
342    # Is there code where there should be for this BSP?
[bd5e4f3b]343    # The bare bsp is a special case as it is not under the target_cpu path
344    case $i in
[579fc6a3]345      bare)
346        bspcpudir=
347        if test "X${BARE_CPU_CFLAGS}" = "X" ; then
[959d752]348          AC_MSG_ERROR([--enable-bare-cpu-cflags not specified for bare bsp])
[579fc6a3]349        fi
350        if test "X${BARE_CPU_MODEL}" = "X" ; then
351          AC_MSG_ERROR([--enable-bare-cpu-model not specified for bare bsp])
352        fi
353        ;;
354      *)
355        bspcpudir=$target_cpu/
356        ;;
[bd5e4f3b]357    esac
[1388d19]358     
[a5400c0]359    if test -d "$srcdir/c/src/lib/libbsp/$bspcpudir$bspdir"; then
[1388d19]360      RTEMS_BSP_LIST="$RTEMS_BSP_LIST $i"
361      # make sure the Makefiles in a bsp directory are only done once
362      echo $bspdirs | grep $bspdir >/dev/null 2>&1
363      if test $? -ne 0 ; then
364        bspdirs="$bspdirs $bspdir"
[a5400c0]365        RTEMS_CHECK_MAKEFILE(c/src/lib/libbsp/$bspcpudir$bspdir)
[67a2288]366        RTEMS_CHECK_MAKEFILE(c/src/lib/libbsp/${bspcpudir}shared)
[1388d19]367      fi
368    else
369      AC_MSG_ERROR([unable to find libbsp directory ($bspdir) for  $i])
370    fi
[1670eede]371  done
372fi
373
[37717818]374# find all the CPU dependent library Makefiles
[1670eede]375RTEMS_CHECK_MAKEFILE(c/src/lib/libcpu/$target_cpu)
376
[37717818]377dnl Workaround for go32
378if test "$skip_startfiles" != "yes"; then
379  RTEMS_CHECK_MAKEFILE(c/src/lib/start/$target_cpu)
380fi
[1670eede]381
382dnl END configure.target.in
383
384
[4a7c0451]385PROJECT_ROOT=`pwd;`
[254b4450]386
[566aea7d]387# If RTEMS macros are enabled, then use them.  Otherwise, use inlines.
388if test "$RTEMS_USE_MACROS" = "yes"; then
389  inline_dir=macros
390  if test "$RTEMS_HAS_POSIX_API" = "yes"; then
391    # The problem is that there is currently no code in posix/macros :)
392    AC_MSG_ERROR(Macros are not implemented for the POSIX API)
393  fi
394else
395  inline_dir=inline
396fi
397
[0280cb6]398# If the TCP/IP stack is enabled, then find all TCP/IP Makefiles
399AC_MSG_CHECKING([if networking is enabled? ])
400AC_MSG_RESULT($RTEMS_HAS_NETWORKING)
401if test "$RTEMS_HAS_NETWORKING" = "yes"; then
402  RTEMS_CHECK_MAKEFILE(c/src/lib/libnetworking)
403fi
404
[80a16ec4]405# If the C++ support is enabled, then include the Makefiles
406if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
407  makefiles="$makefiles c/src/lib/librtems++/Makefile"
408fi
[1f0f3e35]409
[37717818]410# If the tests are enabled, then find all the test suite Makefiles
[70dda0ea]411AC_MSG_CHECKING([if the test suites are enabled? ])
[b9ca4ba]412tests_enabled=yes
[254b4450]413AC_ARG_ENABLE(tests, \
[b9ca4ba]414[  --enable-tests                   enable tests], \
415  [case "${enableval}" in
416    yes) AC_MSG_RESULT(yes) ;;
417    no)  AC_MSG_RESULT(no) ; tests_enabled=no ;;
418    *)   AC_MSG_ERROR(bad value ${enableval} for tests option) ;;
419  esac],
420AC_MSG_RESULT(yes)
[37717818]421)
422
[41f61bc]423RTEMS_CHECK_MAKEFILE(c/src/tests/tools/$target_cpu)
424
[b9ca4ba]425if test "$tests_enabled" = "yes"; then
426   RTEMS_CHECK_MAKEFILE(c/src/tests/libtests)
427   RTEMS_CHECK_MAKEFILE(c/src/tests/sptests)
428   RTEMS_CHECK_MAKEFILE(c/src/tests/tmtests)
429   RTEMS_CHECK_MAKEFILE(c/src/tests/mptests)
[9829978]430   if test "$RTEMS_HAS_POSIX_API" = "yes"; then
[b9ca4ba]431     RTEMS_CHECK_MAKEFILE(c/src/tests/psxtests)
432   fi
433fi
434
[37717818]435# If the HWAPI is enabled, the find the HWAPI Makefiles
[70dda0ea]436AC_MSG_CHECKING([if the HWAPI is enabled? ])
[d4cf164]437AC_ARG_ENABLE(hwapi, \
[b9ca4ba]438[  --enable-hwapi                 enable hardware API library], \
439  [case "${enableval}" in
440    yes) AC_MSG_RESULT(yes)
[80a16ec4]441         if test -f ${srcdir}/c/src/lib/libhwapi/Makefile.in ; then
442            makefiles="$makefiles c/src/lib/libhwapi/Makefile"
443            RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/analog)
444            RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/discrete)
445            RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/drivers)
[6d6f1b34]446            RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/non_volatile_memory)
[80a16ec4]447            RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/serial)
448            RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/support)
449            RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/wrapup)
450         else
451            AC_MSG_ERROR(No source code found for the HWAPI)
452         fi
453         ;;
[b9ca4ba]454    no)  AC_MSG_RESULT(no) ;;
455    *)  AC_MSG_ERROR(bad value ${enableval} for hwapi option) ;;
456  esac],
457  AC_MSG_RESULT(no)
[37717818]458)
[254b4450]459
[2c3840b]460AC_SUBST(RTEMS_GAS_CODE16)
[0b76723]461AC_SUBST(rtems_cv_prog_cc_cross)
[87cec48]462AC_SUBST(RTEMS_BSP_LIST)
[254b4450]463AC_SUBST(RTEMS_HOST)
464AC_SUBST(RTEMS_LIBC_DIR)
[91333c2]465AC_SUBST(RTEMS_USE_OWN_PDIR)
[254b4450]466AC_SUBST(RTEMS_HAS_POSIX_API)
[0280cb6]467AC_SUBST(RTEMS_HAS_NETWORKING)
[254b4450]468AC_SUBST(RTEMS_USE_MACROS)
[91333c2]469AC_SUBST(RTEMS_HAS_CPLUSPLUS)
[e412bae]470AC_SUBST(RTEMS_USE_GCC272)
471AC_SUBST(RTEMS_LIBC_DIR)
[550ca7d5]472AC_SUBST(BARE_CPU_CFLAGS)
473AC_SUBST(BARE_CPU_MODEL)
[254b4450]474AC_SUBST(PROJECT_ROOT)
475AC_SUBST(program_prefix)
[cce81a7]476AC_SUBST(CC_CFLAGS_DEFAULT)
477AC_SUBST(CC_CFLAGS_DEBUG_V)
[946b3cb]478AC_SUBST(CC_CFLAGS_PROFILE_V)
479AC_SUBST(CC_LDFLAGS_PROFILE_V)
[254b4450]480
[37717818]481# pick up all the Makefiles in required parts of the tree
482RTEMS_CHECK_MAKEFILE(c/build-tools)
[6d6f1b34]483RTEMS_CHECK_MAKEFILE(make)
[692b9f7]484RTEMS_CHECK_MAKEFILE(c/src/lib/libchip)
[37717818]485RTEMS_CHECK_MAKEFILE(c/src/lib/libmisc)
486RTEMS_CHECK_MAKEFILE(c/src/tests/samples)
[1670eede]487
[243ce5d]488AC_CONFIG_HEADER(c/build-tools/src/config.h)
489
[37717818]490# try not to explicitly list a Makefile here
[1670eede]491AC_OUTPUT(
492Makefile
[3771cc6e]493make/host.cfg
494make/target.cfg
495make/Templates/Makefile.inc
[cce81a7]496make/compilers/gcc.cfg
[a50148a]497c/Makefile
498c/src/Makefile
499c/src/exec/Makefile
500c/src/exec/score/Makefile
501c/src/exec/score/cpu/Makefile
502c/src/exec/score/headers/Makefile
[566aea7d]503c/src/exec/score/${inline_dir}/Makefile
[a50148a]504c/src/exec/score/src/Makefile
505c/src/exec/score/tools/Makefile
506c/src/exec/score/tools/generic/Makefile
[b9ca4ba]507c/src/exec/wrapup/Makefile
508c/src/exec/wrapup/rtems/Makefile
[a50148a]509c/src/lib/Makefile
510c/src/lib/include/Makefile
511c/src/lib/libbsp/Makefile
512c/src/lib/libbsp/shmdr/Makefile
513c/src/lib/libc/Makefile
514c/src/lib/libcpu/Makefile
515c/src/lib/start/Makefile
516c/src/lib/wrapup/Makefile
517c/src/tests/Makefile
518c/src/tests/support/Makefile
519c/src/tests/support/include/Makefile
520c/src/tests/support/stubdr/Makefile
521c/src/tests/support/wrapup/Makefile
522c/src/tests/tools/Makefile
523c/src/tests/tools/generic/Makefile
524$makefiles
[1670eede]525c/update-tools/Makefile)
[254b4450]526
527echo
528echo target architecture: $target_cpu.
529echo available BSPs: $rtems_bsp.
[87cec48]530echo \'make all\' will build the following BSPs: $RTEMS_BSP_LIST.
531echo other BSPs can be built with \'make RTEMS_BSP=\"bsp1 bsp2 ...\"\'
[254b4450]532echo
Note: See TracBrowser for help on using the repository browser.