[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 |
---|
[d16ca93] | 28 | AC_CONFIG_SUBDIRS(make) |
---|
[4a2faa7c] | 29 | |
---|
[04e6f7bf] | 30 | ## Exclude exec from building if multilibs are enabled |
---|
| 31 | if test x"$multilib" = x"no"; then |
---|
[d16ca93] | 32 | hst_subdirs="$hst_subdirs exec" |
---|
[04e6f7bf] | 33 | fi |
---|
[d16ca93] | 34 | hst_subdirs="$hst_subdirs lib" |
---|
| 35 | hst_subdirs="$hst_subdirs lib/libcpu" |
---|
| 36 | hst_subdirs="$hst_subdirs lib/libbsp" |
---|
| 37 | hst_subdirs="$hst_subdirs libfs" |
---|
[fa60c5b] | 38 | hst_subdirs="$hst_subdirs libmisc" |
---|
[45269dc] | 39 | |
---|
[2782e69] | 40 | if test "$RTEMS_CPU" != "unix"; then |
---|
| 41 | ## HACK: Suppress libchip for unix |
---|
[fa60c5b] | 42 | hst_subdirs="$hst_subdirs libchip" |
---|
[2782e69] | 43 | fi |
---|
| 44 | |
---|
[b62a92c] | 45 | if test "$HAS_NETWORKING" = "yes"; then |
---|
[3724b7f] | 46 | hst_subdirs="$hst_subdirs libnetworking librpc" |
---|
[45269dc] | 47 | if test "$RTEMS_HAS_RDBG" = "yes"; then |
---|
| 48 | RTEMS_CHECK_RDBG(RTEMS_BSP) |
---|
| 49 | fi |
---|
| 50 | fi |
---|
| 51 | |
---|
| 52 | if test "$HAS_RDBG" = "yes"; then |
---|
[3724b7f] | 53 | hst_subdirs="$hst_subdirs librdbg" |
---|
[b62a92c] | 54 | fi |
---|
[4bdebdfe] | 55 | AM_CONDITIONAL(HAS_NETWORKING, test "$HAS_NETWORKING" = "yes" ) |
---|
| 56 | AM_CONDITIONAL(HAS_RDBG, test "$HAS_RDBG" = "yes" ) |
---|
[45269dc] | 57 | |
---|
[e1d8abb] | 58 | if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then |
---|
[0864bf93] | 59 | hst_subdirs="$hst_subdirs librtems++"; |
---|
[e1d8abb] | 60 | fi |
---|
[45269dc] | 61 | |
---|
[846027b] | 62 | AC_CONFIG_SUBDIRS($hst_subdirs) |
---|
[4a2faa7c] | 63 | AC_SUBST(hst_subdirs) |
---|
| 64 | |
---|
[846027b] | 65 | AC_CONFIG_SUBDIRS(wrapup tests) |
---|
[eb299afc] | 66 | |
---|
[b62a92c] | 67 | RTEMS_PROJECT_ROOT |
---|
| 68 | |
---|
[70810dc] | 69 | # Explicitly list all Makefiles here |
---|
[eb299afc] | 70 | AC_OUTPUT( |
---|
| 71 | Makefile |
---|
[846027b] | 72 | ,, |
---|
[c05edee] | 73 | test -d lib || mkdir lib |
---|
[eb299afc] | 74 | ) |
---|