[eb299afc] | 1 | dnl Process this file with autoconf to produce a configure script. |
---|
| 2 | dnl |
---|
| 3 | dnl $Id$ |
---|
| 4 | |
---|
| 5 | AC_PREREQ(2.13) |
---|
[f724a870] | 6 | AC_INIT(exec) |
---|
[eb299afc] | 7 | RTEMS_TOP(../..) |
---|
| 8 | AC_CONFIG_AUX_DIR(../..) |
---|
| 9 | |
---|
[e1d8abb] | 10 | RTEMS_ENABLE_CXX |
---|
[b62a92c] | 11 | RTEMS_ENABLE_NETWORKING |
---|
[45269dc] | 12 | RTEMS_ENABLE_RDBG |
---|
[e1d8abb] | 13 | |
---|
[eb299afc] | 14 | RTEMS_CANONICAL_TARGET_CPU |
---|
[b62a92c] | 15 | RTEMS_CANONICAL_HOST |
---|
[eb299afc] | 16 | |
---|
| 17 | AM_INIT_AUTOMAKE(rtems-c-src,$RTEMS_VERSION,no) |
---|
| 18 | AM_MAINTAINER_MODE |
---|
| 19 | |
---|
[04e6f7bf] | 20 | RTEMS_ENABLE_MULTILIB |
---|
[eb299afc] | 21 | RTEMS_ENV_RTEMSBSP |
---|
| 22 | RTEMS_CHECK_CPU |
---|
| 23 | RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) |
---|
| 24 | |
---|
[b62a92c] | 25 | RTEMS_CHECK_NETWORKING(RTEMS_BSP) |
---|
| 26 | |
---|
[e1d8abb] | 27 | ## Note: the order of the directories below is essential |
---|
[e590416a] | 28 | cfg_subdirs1="make" |
---|
[4a2faa7c] | 29 | |
---|
[04e6f7bf] | 30 | ## Exclude exec from building if multilibs are enabled |
---|
| 31 | if test x"$multilib" = x"no"; then |
---|
[e590416a] | 32 | hst_subdirs1="$hst_subdirs1 exec" |
---|
[04e6f7bf] | 33 | fi |
---|
[a6eabdb6] | 34 | hst_subdirs1="$hst_subdirs1 lib lib/libcpu" |
---|
| 35 | cfg_subdirs="$cfg_subdirs lib/libbsp" |
---|
[4a2faa7c] | 36 | hst_subdirs="libfs" |
---|
[fa60c5b] | 37 | hst_subdirs="$hst_subdirs libmisc" |
---|
[45269dc] | 38 | |
---|
[2782e69] | 39 | if test "$RTEMS_CPU" != "unix"; then |
---|
| 40 | ## HACK: Suppress libchip for unix |
---|
[fa60c5b] | 41 | hst_subdirs="$hst_subdirs libchip" |
---|
[2782e69] | 42 | fi |
---|
| 43 | |
---|
[b62a92c] | 44 | if test "$HAS_NETWORKING" = "yes"; then |
---|
[3724b7f] | 45 | hst_subdirs="$hst_subdirs libnetworking librpc" |
---|
[45269dc] | 46 | if test "$RTEMS_HAS_RDBG" = "yes"; then |
---|
| 47 | RTEMS_CHECK_RDBG(RTEMS_BSP) |
---|
| 48 | fi |
---|
| 49 | fi |
---|
| 50 | |
---|
| 51 | if test "$HAS_RDBG" = "yes"; then |
---|
[3724b7f] | 52 | hst_subdirs="$hst_subdirs librdbg" |
---|
[b62a92c] | 53 | fi |
---|
[4bdebdfe] | 54 | AM_CONDITIONAL(HAS_NETWORKING, test "$HAS_NETWORKING" = "yes" ) |
---|
| 55 | AM_CONDITIONAL(HAS_RDBG, test "$HAS_RDBG" = "yes" ) |
---|
[45269dc] | 56 | |
---|
[e1d8abb] | 57 | if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then |
---|
[0864bf93] | 58 | hst_subdirs="$hst_subdirs librtems++"; |
---|
[e1d8abb] | 59 | fi |
---|
[45269dc] | 60 | |
---|
[e590416a] | 61 | RTEMS_CONFIG_HOST_SUBDIRS($hst_subdirs1) |
---|
| 62 | AC_SUBST(hst_subdirs1) |
---|
[4a2faa7c] | 63 | RTEMS_CONFIG_HOST_SUBDIRS($hst_subdirs) |
---|
| 64 | AC_SUBST(hst_subdirs) |
---|
| 65 | |
---|
[e590416a] | 66 | AC_CONFIG_SUBDIRS($cfg_subdirs1) |
---|
| 67 | AC_SUBST(cfg_subdirs1) |
---|
[e1d8abb] | 68 | AC_CONFIG_SUBDIRS($cfg_subdirs) |
---|
[0efa9f0] | 69 | AC_SUBST(cfg_subdirs) |
---|
[4a2faa7c] | 70 | |
---|
[eb299afc] | 71 | AC_CONFIG_SUBDIRS(tests) |
---|
| 72 | |
---|
[b62a92c] | 73 | RTEMS_PROJECT_ROOT |
---|
| 74 | |
---|
[00438014] | 75 | RTEMS_PROG_CC_FOR_TARGET |
---|
| 76 | RTEMS_CANONICALIZE_TOOLS |
---|
| 77 | |
---|
[70810dc] | 78 | # Explicitly list all Makefiles here |
---|
[eb299afc] | 79 | AC_OUTPUT( |
---|
| 80 | Makefile |
---|
[c05edee] | 81 | wrapup/Makefile,, |
---|
| 82 | test -d lib || mkdir lib |
---|
[eb299afc] | 83 | ) |
---|
[4a2faa7c] | 84 | |
---|
| 85 | RTEMS_OUTPUT_HOST_SUBDIRS(RTEMS_HOST_SUBDIRS) |
---|