[2af6056] | 1 | ## Process this file with autoconf to produce a configure script. |
---|
| 2 | ## |
---|
| 3 | ## $Id$ |
---|
| 4 | |
---|
| 5 | AC_PREREQ(2.52) |
---|
| 6 | AC_INIT([rtems-ada-tests],[_RTEMS_VERSION],[rtems-bugs@OARcorp.com]) |
---|
| 7 | AC_CONFIG_SRCDIR([support]) |
---|
| 8 | RTEMS_TOP(../../..) |
---|
| 9 | AC_CONFIG_AUX_DIR(../../..) |
---|
| 10 | |
---|
| 11 | RTEMS_CANONICAL_TARGET_CPU |
---|
| 12 | RTEMS_CANONICAL_HOST |
---|
| 13 | |
---|
| 14 | AM_INIT_AUTOMAKE([no-define foreign 1.6]) |
---|
| 15 | AM_MAINTAINER_MODE |
---|
| 16 | |
---|
[a846105] | 17 | AC_CHECK_PROGS([M4],[gm4 m4]) |
---|
[2af6056] | 18 | RTEMS_PROG_GNAT |
---|
| 19 | RTEMS_CANONICALIZE_TOOLS |
---|
| 20 | |
---|
| 21 | RTEMS_ENABLE_MULTILIB |
---|
| 22 | RTEMS_ENABLE_MULTIPROCESSING |
---|
| 23 | RTEMS_ENV_RTEMSBSP |
---|
| 24 | RTEMS_CHECK_CPU |
---|
| 25 | RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) |
---|
[ea14663] | 26 | RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP) |
---|
[2af6056] | 27 | |
---|
[a846105] | 28 | AS_IF([test x"$HAVE_GNAT" = x"no"],[ |
---|
| 29 | AC_MSG_ERROR([No acceptable GNATMAKE found.]) |
---|
| 30 | ]) |
---|
| 31 | |
---|
[ea14663] | 32 | AM_CONDITIONAL(HAS_MP,test "$HAS_MP" = "yes") |
---|
| 33 | |
---|
[a846105] | 34 | RTEMS_CHECK_TOOL([GNATPREP],[gnatprep],[]) |
---|
[2af6056] | 35 | |
---|
| 36 | # FIXME: Enable building the examples which are known to be broken |
---|
| 37 | AM_CONDITIONAL([EXPADA], |
---|
| 38 | [test x"$enable_expada" = x"yes" && test x"$HAVE_GNAT" = x"yes"]) |
---|
| 39 | |
---|
| 40 | RTEMS_PROJECT_ROOT |
---|
| 41 | |
---|
| 42 | # Explicitly list all Makefiles here |
---|
| 43 | AC_CONFIG_FILES([Makefile]) |
---|
| 44 | |
---|
| 45 | AC_CONFIG_FILES([support/Makefile]) |
---|
| 46 | |
---|
| 47 | AC_CONFIG_FILES([ |
---|
| 48 | samples/Makefile |
---|
[ea14663] | 49 | samples/base_sp/Makefile |
---|
[2af6056] | 50 | samples/hello/Makefile |
---|
| 51 | samples/ticker/Makefile |
---|
[ea14663] | 52 | ]) |
---|
| 53 | |
---|
| 54 | if test "$HAS_MP" = "yes"; then |
---|
| 55 | AC_CONFIG_FILES([ |
---|
[2af6056] | 56 | samples/base_mp/Makefile |
---|
[0c7ef52] | 57 | samples/base_mp/node1/Makefile |
---|
| 58 | samples/base_mp/node2/Makefile |
---|
[2af6056] | 59 | ]) |
---|
[ea14663] | 60 | fi |
---|
[2af6056] | 61 | |
---|
| 62 | AC_CONFIG_FILES([ |
---|
| 63 | sptests/Makefile |
---|
| 64 | sptests/sp01/Makefile |
---|
| 65 | sptests/sp02/Makefile |
---|
| 66 | sptests/sp03/Makefile |
---|
| 67 | sptests/sp04/Makefile |
---|
| 68 | sptests/sp05/Makefile |
---|
| 69 | sptests/sp06/Makefile |
---|
| 70 | sptests/sp07/Makefile |
---|
| 71 | sptests/sp08/Makefile |
---|
| 72 | sptests/sp09/Makefile |
---|
| 73 | sptests/sp11/Makefile |
---|
| 74 | sptests/sp12/Makefile |
---|
| 75 | sptests/sp13/Makefile |
---|
| 76 | sptests/sp14/Makefile |
---|
| 77 | sptests/sp15/Makefile |
---|
| 78 | sptests/sp16/Makefile |
---|
| 79 | sptests/sp17/Makefile |
---|
| 80 | sptests/sp19/Makefile |
---|
| 81 | sptests/sp20/Makefile |
---|
| 82 | sptests/sp21/Makefile |
---|
| 83 | sptests/sp22/Makefile |
---|
| 84 | sptests/sp23/Makefile |
---|
| 85 | sptests/sp24/Makefile |
---|
| 86 | sptests/sp25/Makefile |
---|
| 87 | sptests/spsize/Makefile |
---|
| 88 | ]) |
---|
| 89 | |
---|
[7edb3d3a] | 90 | AC_CONFIG_FILES([ |
---|
| 91 | tmtests/Makefile |
---|
| 92 | tmtests/tm01/Makefile |
---|
| 93 | tmtests/tm02/Makefile |
---|
| 94 | tmtests/tm03/Makefile |
---|
| 95 | tmtests/tm04/Makefile |
---|
| 96 | tmtests/tm05/Makefile |
---|
| 97 | tmtests/tm06/Makefile |
---|
| 98 | tmtests/tm07/Makefile |
---|
| 99 | tmtests/tm08/Makefile |
---|
| 100 | tmtests/tm09/Makefile |
---|
| 101 | tmtests/tm10/Makefile |
---|
| 102 | tmtests/tm11/Makefile |
---|
| 103 | tmtests/tm12/Makefile |
---|
| 104 | tmtests/tm13/Makefile |
---|
| 105 | tmtests/tm14/Makefile |
---|
| 106 | tmtests/tm15/Makefile |
---|
| 107 | tmtests/tm16/Makefile |
---|
| 108 | tmtests/tm17/Makefile |
---|
| 109 | tmtests/tm18/Makefile |
---|
| 110 | tmtests/tm19/Makefile |
---|
| 111 | tmtests/tm20/Makefile |
---|
| 112 | tmtests/tm21/Makefile |
---|
| 113 | tmtests/tm22/Makefile |
---|
| 114 | tmtests/tm23/Makefile |
---|
| 115 | tmtests/tm24/Makefile |
---|
| 116 | tmtests/tm25/Makefile |
---|
| 117 | tmtests/tm28/Makefile |
---|
| 118 | tmtests/tm29/Makefile |
---|
| 119 | tmtests/tmck/Makefile |
---|
| 120 | tmtests/tmoverhd/Makefile |
---|
| 121 | ]) |
---|
[2af6056] | 122 | |
---|
[ea14663] | 123 | if test "$HAS_MP" = "yes"; then |
---|
[0c7ef52] | 124 | AC_CONFIG_FILES([ |
---|
| 125 | mptests/Makefile |
---|
| 126 | mptests/mp01/Makefile |
---|
| 127 | mptests/mp01/node1/Makefile |
---|
| 128 | mptests/mp01/node2/Makefile |
---|
| 129 | ]) |
---|
[2af6056] | 130 | #mptests/mp02/Makefile |
---|
[0c7ef52] | 131 | #mptests/mp03/Makefile |
---|
| 132 | #mptests/mp04/Makefile |
---|
| 133 | #mptests/mp05/Makefile |
---|
| 134 | #mptests/mp06/Makefile |
---|
| 135 | #mptests/mp07/Makefile |
---|
| 136 | #mptests/mp08/Makefile |
---|
| 137 | #mptests/mp09/Makefile |
---|
| 138 | #mptests/mp10/Makefile |
---|
| 139 | #mptests/mp11/Makefile |
---|
| 140 | #mptests/mp12/Makefile |
---|
| 141 | #mptests/mp13/Makefile |
---|
| 142 | #mptests/mp14/Makefile |
---|
[ea14663] | 143 | fi |
---|
[2af6056] | 144 | |
---|
| 145 | AC_OUTPUT |
---|