[rtems commit] */aclocal/*: Remove remnants of autoconf/ automae build system

Joel Sherrill joel at rtems.org
Mon Nov 29 14:59:56 UTC 2021


Module:    rtems
Branch:    master
Commit:    e945e3fc4d6a6a74789c9a348120ec7d06e19231
Changeset: http://git.rtems.org/rtems/commit/?id=e945e3fc4d6a6a74789c9a348120ec7d06e19231

Author:    Joel Sherrill <joel at rtems.org>
Date:      Wed Nov 24 12:03:57 2021 -0600

*/aclocal/*: Remove remnants of autoconf/automae build system

Updates #4081.

---

 cpukit/aclocal/canonical-target-name.m4     |  25 ------
 cpukit/aclocal/canonicalize-tools.m4        |  13 ----
 cpukit/aclocal/check-func.m4                |  21 -----
 cpukit/aclocal/check-multiprocessing.m4     |   5 --
 cpukit/aclocal/check-networking.m4          |  25 ------
 cpukit/aclocal/check-newlib.m4              |  28 -------
 cpukit/aclocal/check-posix.m4               |  19 -----
 cpukit/aclocal/check-rtems-debug.m4         |   5 --
 cpukit/aclocal/check-smp.m4                 |  18 -----
 cpukit/aclocal/check-tool.m4                |   9 ---
 cpukit/aclocal/enable-drvmgr.m4             |  12 ---
 cpukit/aclocal/enable-multiprocessing.m4    |  13 ----
 cpukit/aclocal/enable-networking.m4         |  12 ---
 cpukit/aclocal/enable-paravirt.m4           |  13 ----
 cpukit/aclocal/enable-posix.m4              |  21 -----
 cpukit/aclocal/enable-profiling.m4          |   9 ---
 cpukit/aclocal/enable-rtems-debug.m4        |  10 ---
 cpukit/aclocal/enable-smp.m4                |  17 -----
 cpukit/aclocal/env-rtemscpu.m4              |   6 --
 cpukit/aclocal/gcc-pipe.m4                  |  18 -----
 cpukit/aclocal/gcc-sanity.m4                | 114 ----------------------------
 cpukit/aclocal/gcc-weak.m4                  |  19 -----
 cpukit/aclocal/multi.m4                     |  50 ------------
 cpukit/aclocal/multilib.m4                  |  14 ----
 cpukit/aclocal/prog-cc.m4                   |  38 ----------
 cpukit/aclocal/prog-ccas.m4                 |   6 --
 cpukit/aclocal/rtems-bsp-includes.m4        |  13 ----
 cpukit/aclocal/rtems-build-top.m4           |  12 ---
 cpukit/aclocal/rtems-includes.m4            |  23 ------
 cpukit/aclocal/rtems-source-top.m4          |   8 --
 cpukit/aclocal/rtems-top.m4                 |  70 -----------------
 cpukit/aclocal/version.m4                   |   4 -
 testsuites/aclocal/canonical-target-name.m4 |  25 ------
 testsuites/aclocal/canonicalize-tools.m4    |  20 -----
 testsuites/aclocal/check-cpuopts.m4         |  21 -----
 testsuites/aclocal/check-custom-bsp.m4      |  22 ------
 testsuites/aclocal/check-cxx.m4             |  20 -----
 testsuites/aclocal/check-tool.m4            |   9 ---
 testsuites/aclocal/enable-cxx.m4            |  11 ---
 testsuites/aclocal/enable-tests.m4          |  11 ---
 testsuites/aclocal/env-rtemsbsp.m4          |  27 -------
 testsuites/aclocal/gcc-specs.m4             |  16 ----
 testsuites/aclocal/prog-cc.m4               |  40 ----------
 testsuites/aclocal/prog-cxx.m4              |  49 ------------
 testsuites/aclocal/project-root.m4          |   7 --
 testsuites/aclocal/rtems-bsp-includes.m4    |  13 ----
 testsuites/aclocal/rtems-bsp-linkcmds.m4    |  25 ------
 testsuites/aclocal/rtems-build-top.m4       |  12 ---
 testsuites/aclocal/rtems-includes.m4        |  23 ------
 testsuites/aclocal/rtems-source-top.m4      |   8 --
 testsuites/aclocal/rtems-test-check.m4      |  31 --------
 testsuites/aclocal/rtems-top.m4             |  83 --------------------
 testsuites/aclocal/version.m4               |   4 -
 testsuites/ada/aclocal/prog-gnat.m4         |  44 -----------
 54 files changed, 1191 deletions(-)

diff --git a/cpukit/aclocal/canonical-target-name.m4 b/cpukit/aclocal/canonical-target-name.m4
deleted file mode 100644
index d3c2531..0000000
--- a/cpukit/aclocal/canonical-target-name.m4
+++ /dev/null
@@ -1,25 +0,0 @@
-dnl canonicalize target cpu
-dnl NOTE: Most rtems targets do not fullfil autoconf's
-dnl target naming conventions "processor-vendor-os"
-dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
-dnl and we have to fix it for rtems ourselves 
-
-AC_DEFUN([RTEMS_CANONICAL_TARGET_CPU],
-[AC_REQUIRE([AC_CANONICAL_HOST])
-AC_MSG_CHECKING(rtems target cpu)
-case "${host}" in
-riscv*-*-rtems*)
-	RTEMS_CPU=riscv;;
-*-*-rtems*)
-	RTEMS_CPU="$host_cpu";;
-*)
-	;;
-esac
-AS_IF([test -n "$RTEMS_CPU"],
-[dnl
-AC_MSG_RESULT($RTEMS_CPU)],
-[dnl
-AC_MSG_RESULT([<none>])
-AC_MSG_ERROR([unsupported host $host])])
-AC_SUBST(RTEMS_CPU)
-])
diff --git a/cpukit/aclocal/canonicalize-tools.m4 b/cpukit/aclocal/canonicalize-tools.m4
deleted file mode 100644
index 5795c1e..0000000
--- a/cpukit/aclocal/canonicalize-tools.m4
+++ /dev/null
@@ -1,13 +0,0 @@
-dnl
-dnl Set target tools
-dnl
-
-AC_DEFUN([RTEMS_CANONICALIZE_TOOLS],
-[AC_REQUIRE([RTEMS_PROG_CC])dnl
-
-dnl FIXME: What shall be done if these tools are not available?
-  RTEMS_CHECK_TOOL(AR,ar,no)
-
-dnl special treatment of ranlib
-  RTEMS_CHECK_TOOL(RANLIB,ranlib,:)
-])
diff --git a/cpukit/aclocal/check-func.m4 b/cpukit/aclocal/check-func.m4
deleted file mode 100644
index 36d700b..0000000
--- a/cpukit/aclocal/check-func.m4
+++ /dev/null
@@ -1,21 +0,0 @@
-# Check whether FUNCTION is declared in INCLUDES
-# and whether rtems_stub_FUNCTION or FUNCTION is supplied.
-
-# RTEMS_CHECK_FUNC(FUNCTION[,INCLUDES])
-AC_DEFUN([RTEMS_CHECK_FUNC],
-[AC_REQUIRE([RTEMS_CHECK_NEWLIB])
-AC_CHECK_DECLS([$1],,,[$2])
-
-AC_CACHE_CHECK([for $1],[ac_cv_$1],[
-  AC_LINK_IFELSE(
-    [AC_LANG_PROGRAM([[$2]],[[rtems_stub_$1()]])],
-    [ac_cv_$1="stub"],
-    [AC_LINK_IFELSE(
-      [AC_LANG_PROGRAM([[$2]],[[$1()]])],
-      [ac_cv_$1="yes"],
-      [ac_cv_$1="no"])
-    ])
-  ])
-AS_IF([test "$ac_cv_$1" = yes],
-  [AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_]$1),[1],[Define to 1 if you have the `$1' function.])])
-])
diff --git a/cpukit/aclocal/check-multiprocessing.m4 b/cpukit/aclocal/check-multiprocessing.m4
deleted file mode 100644
index 1698d3d..0000000
--- a/cpukit/aclocal/check-multiprocessing.m4
+++ /dev/null
@@ -1,5 +0,0 @@
-AC_DEFUN([RTEMS_CHECK_MULTIPROCESSING],
-[dnl
-AC_REQUIRE([RTEMS_ENV_RTEMSCPU])dnl
-AC_REQUIRE([RTEMS_ENABLE_MULTIPROCESSING])dnl
-])
diff --git a/cpukit/aclocal/check-networking.m4 b/cpukit/aclocal/check-networking.m4
deleted file mode 100644
index 7f38875..0000000
--- a/cpukit/aclocal/check-networking.m4
+++ /dev/null
@@ -1,25 +0,0 @@
-dnl
-AC_DEFUN([RTEMS_CHECK_NETWORKING],
-[dnl
-AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl
-AC_REQUIRE([RTEMS_ENABLE_NETWORKING])dnl
-AC_REQUIRE([RTEMS_INCLUDES])dnl
-
-AC_CACHE_CHECK([whether CPU supports networking],
-  rtems_cv_HAS_NETWORKING,
-  [dnl
-    case "$host" in
-    # Newer architecture ports that should only use new TCP/IP stack
-    x86_64*)
-      rtems_cv_HAS_NETWORKING="no"
-      ;;
-    *)
-      AS_IF([test "${RTEMS_HAS_NETWORKING}" = "yes"],
-      [rtems_cv_HAS_NETWORKING="yes"
-      RTEMS_CPPFLAGS="${RTEMS_CPPFLAGS} -I${RTEMS_SOURCE_ROOT}/cpukit/libnetworking"],
-      [rtems_cv_HAS_NETWORKING="no"])
-      ;;
-    esac
-    ])
-  ])
-])
diff --git a/cpukit/aclocal/check-newlib.m4 b/cpukit/aclocal/check-newlib.m4
deleted file mode 100644
index f23a90c..0000000
--- a/cpukit/aclocal/check-newlib.m4
+++ /dev/null
@@ -1,28 +0,0 @@
-AC_DEFUN([RTEMS_CHECK_NEWLIB],
-[dnl
-AC_REQUIRE([RTEMS_PROG_CC_FOR_TARGET])dnl
-AC_REQUIRE([RTEMS_CANONICALIZE_TOOLS])dnl
-AC_CACHE_CHECK([for RTEMS newlib],
-  rtems_cv_use_newlib,
-  [
-dnl some versions of newlib provide not_required_by_rtems
-    AC_LINK_IFELSE(
-      [AC_LANG_PROGRAM([[extern void not_required_by_rtems() ;]], 
-        [[not_required_by_rtems()]])],
-      [rtems_cv_use_newlib="yes"],[])
-
-dnl some versions of newlib provide rtems_provides_crt0()
-    AS_IF([test -z "$rtems_cv_use_newlib"],
-      [AC_LINK_IFELSE(
-         [AC_LANG_PROGRAM([[extern void rtems_provides_crt0() ;]],
-           [[rtems_provides_crt0()]])],
-         [rtems_cv_use_newlib="yes"],[rtems_cv_use_newlib="no"])
-    ])
-  ])
-  RTEMS_USE_NEWLIB="$rtems_cv_use_newlib"
-  AC_SUBST(RTEMS_USE_NEWLIB)
-
-  AS_IF([test x"${RTEMS_USE_NEWLIB}" = x"yes"],
-    [ AC_DEFINE_UNQUOTED(RTEMS_NEWLIB,1,[if using newlib])]
-  )
-])
diff --git a/cpukit/aclocal/check-posix.m4 b/cpukit/aclocal/check-posix.m4
deleted file mode 100644
index ad1d1c8..0000000
--- a/cpukit/aclocal/check-posix.m4
+++ /dev/null
@@ -1,19 +0,0 @@
-dnl
-AC_DEFUN([RTEMS_CHECK_POSIX_API],
-[dnl
-AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl
-AC_REQUIRE([RTEMS_ENABLE_POSIX])dnl
-
-AC_CACHE_CHECK([whether CPU supports libposix],
-  rtems_cv_HAS_POSIX_API,
-  [dnl
-    case "$host" in
-    *-*-rtems*)
-      if test "${RTEMS_HAS_POSIX_API}" = "yes"; then
-        rtems_cv_HAS_POSIX_API="yes";
-      else
-        rtems_cv_HAS_POSIX_API="disabled";
-      fi
-      ;;
-    esac])
-])
diff --git a/cpukit/aclocal/check-rtems-debug.m4 b/cpukit/aclocal/check-rtems-debug.m4
deleted file mode 100644
index 280edcc..0000000
--- a/cpukit/aclocal/check-rtems-debug.m4
+++ /dev/null
@@ -1,5 +0,0 @@
-AC_DEFUN([RTEMS_CHECK_RTEMS_DEBUG],
-[AC_REQUIRE([RTEMS_ENABLE_RTEMS_DEBUG])
-AS_IF([test x"${enable_rtems_debug}" = x"yes"],
-  [AC_DEFINE_UNQUOTED(RTEMS_DEBUG,1,[if RTEMS_DEBUG is enabled])])
-])
diff --git a/cpukit/aclocal/check-smp.m4 b/cpukit/aclocal/check-smp.m4
deleted file mode 100644
index a0c8b81..0000000
--- a/cpukit/aclocal/check-smp.m4
+++ /dev/null
@@ -1,18 +0,0 @@
-dnl
-AC_DEFUN([RTEMS_CHECK_SMP],
-[dnl
-AC_REQUIRE([RTEMS_ENABLE_SMP])dnl
-
-AC_CACHE_CHECK([whether CPU supports SMP],
-  rtems_cv_HAS_SMP,
-  [dnl
-    case "$RTEMS_CPU" in
-    *)
-      if test "${RTEMS_HAS_SMP}" = "yes"; then
-        rtems_cv_HAS_SMP="yes";
-      else
-        rtems_cv_HAS_SMP="disabled";
-      fi
-      ;;
-    esac])
-])
diff --git a/cpukit/aclocal/check-tool.m4 b/cpukit/aclocal/check-tool.m4
deleted file mode 100644
index 2bc137c..0000000
--- a/cpukit/aclocal/check-tool.m4
+++ /dev/null
@@ -1,9 +0,0 @@
-## Check for a cross tool, similar to AC_CHECK_TOOL, but do not fall back to
-## the un-prefixed version of PROG-TO-CHECK-FOR.
-dnl RTEMS_CHECK_TOOL(VARIABLE, PROG-TO-CHECK-FOR[, VALUE-IF-NOT-FOUND [, PATH]])
-AC_DEFUN([RTEMS_CHECK_TOOL],
-[
-  AS_IF([test "x$build_alias" != "x$host_alias"],
-    [rtems_tool_prefix=${ac_tool_prefix}])
-  AC_CHECK_PROG($1, ${rtems_tool_prefix}$2, ${rtems_tool_prefix}$2, $3, $4)
-])
diff --git a/cpukit/aclocal/enable-drvmgr.m4 b/cpukit/aclocal/enable-drvmgr.m4
deleted file mode 100644
index a9da288..0000000
--- a/cpukit/aclocal/enable-drvmgr.m4
+++ /dev/null
@@ -1,12 +0,0 @@
-dnl $Id: enable-drvmgr.m4,v 1.0
-
-AC_DEFUN([RTEMS_ENABLE_DRVMGR],
-[
-AC_ARG_ENABLE(drvmgr,
-AS_HELP_STRING(--enable-drvmgr,enable drvmgr at startup),
-[case "${enableval}" in 
-  yes) RTEMS_DRVMGR_STARTUP=yes ;;
-  no) RTEMS_DRVMGR_STARTUP=no ;;
-  *)  AC_MSG_ERROR(bad value ${enableval} for enable-drvmgr option) ;;
-esac],[RTEMS_DRVMGR_STARTUP=yes]) 
-])
diff --git a/cpukit/aclocal/enable-multiprocessing.m4 b/cpukit/aclocal/enable-multiprocessing.m4
deleted file mode 100644
index 53fa8ff..0000000
--- a/cpukit/aclocal/enable-multiprocessing.m4
+++ /dev/null
@@ -1,13 +0,0 @@
-AC_DEFUN([RTEMS_ENABLE_MULTIPROCESSING],
-[
-AC_ARG_ENABLE(multiprocessing,
-[AS_HELP_STRING([--enable-multiprocessing],
-[enable multiprocessing interface; the multiprocessing interface is a
-communication interface between different RTEMS instances and allows
-synchronization of objects via message passing])],
-[case "${enable_multiprocessing}" in 
-  yes) ;;
-  no) ;;
-  *)  AC_MSG_ERROR(bad value ${enableval} for enable-multiprocessing option) ;;
-esac],[enable_multiprocessing=no])
-])
diff --git a/cpukit/aclocal/enable-networking.m4 b/cpukit/aclocal/enable-networking.m4
deleted file mode 100644
index d9b50ef..0000000
--- a/cpukit/aclocal/enable-networking.m4
+++ /dev/null
@@ -1,12 +0,0 @@
-AC_DEFUN([RTEMS_ENABLE_NETWORKING],
-[
-## AC_BEFORE([$0], [RTEMS_CHECK_NETWORKING])dnl
-
-AC_ARG_ENABLE(networking,
-AS_HELP_STRING(--enable-networking,enable TCP/IP stack),
-[case "${enableval}" in
-  yes) RTEMS_HAS_NETWORKING=yes ;;
-  no) RTEMS_HAS_NETWORKING=no ;;
-  *)  AC_MSG_ERROR(bad value ${enableval} for enable-networking option) ;;
-esac],[RTEMS_HAS_NETWORKING=yes])
-])
diff --git a/cpukit/aclocal/enable-paravirt.m4 b/cpukit/aclocal/enable-paravirt.m4
deleted file mode 100644
index b3ef97e..0000000
--- a/cpukit/aclocal/enable-paravirt.m4
+++ /dev/null
@@ -1,13 +0,0 @@
-AC_DEFUN([RTEMS_ENABLE_PARAVIRT],
-[
-
-AC_ARG_ENABLE(paravirt,
-[AS_HELP_STRING([--enable-paravirt],[enable support for paravirtualization
-(default=no)])],
-
-[case "${enableval}" in 
-  yes) RTEMS_HAS_PARAVIRT=yes ;;
-  no) RTEMS_HAS_PARAVIRT=no ;;
-  *)  AC_MSG_ERROR(bad value ${enableval} for enable-paravirt option) ;;
-esac],[RTEMS_HAS_PARAVIRT=no]) 
-])
diff --git a/cpukit/aclocal/enable-posix.m4 b/cpukit/aclocal/enable-posix.m4
deleted file mode 100644
index c183395..0000000
--- a/cpukit/aclocal/enable-posix.m4
+++ /dev/null
@@ -1,21 +0,0 @@
-AC_DEFUN([RTEMS_ENABLE_POSIX],
-[
-## AC_BEFORE([$0], [RTEMS_CHECK_POSIX_API])dnl
-
-AC_ARG_ENABLE(posix,
-AS_HELP_STRING(--enable-posix,enable posix interface),
-[case "${enableval}" in 
-  yes) RTEMS_HAS_POSIX_API=yes ;;
-  no) RTEMS_HAS_POSIX_API=no ;;
-  *)  AC_MSG_ERROR(bad value ${enableval} for enable-posix option) ;;
-esac],[RTEMS_HAS_POSIX_API=yes]) 
-
-case "${host}" in
-  no_cpu-*rtems*)
-	RTEMS_HAS_POSIX_API=no
-	;;
-  *) 
-	;;
-esac
-AC_SUBST(RTEMS_HAS_POSIX_API)
-])
diff --git a/cpukit/aclocal/enable-profiling.m4 b/cpukit/aclocal/enable-profiling.m4
deleted file mode 100644
index b363ae2..0000000
--- a/cpukit/aclocal/enable-profiling.m4
+++ /dev/null
@@ -1,9 +0,0 @@
-AC_DEFUN([RTEMS_ENABLE_PROFILING],
-  [AC_ARG_ENABLE(profiling,
-    [AS_HELP_STRING([--enable-profiling],[enable support for profiling (default=no)])],
-    [case "${enableval}" in 
-      yes) RTEMS_HAS_PROFILING=yes ;;
-      no) RTEMS_HAS_PROFILING=no ;;
-      *) AC_MSG_ERROR(bad value ${enableval} for enable profiling option) ;;
-    esac],
-    [RTEMS_HAS_PROFILING=no])])
diff --git a/cpukit/aclocal/enable-rtems-debug.m4 b/cpukit/aclocal/enable-rtems-debug.m4
deleted file mode 100644
index ba4a4f2..0000000
--- a/cpukit/aclocal/enable-rtems-debug.m4
+++ /dev/null
@@ -1,10 +0,0 @@
-AC_DEFUN([RTEMS_ENABLE_RTEMS_DEBUG],
-[
-AC_ARG_ENABLE(rtems-debug,
-AS_HELP_STRING(--enable-rtems-debug,enable RTEMS_DEBUG),
-[case "${enable_rtems_debug}" in
-  yes) enable_rtems_debug=yes ;;
-  no)  enable_rtems_debug=no ;;
-  *) AC_MSG_ERROR([bad value ${enable_rtems_debug} for RTEMS_DEBUG]) ;;
-esac],[enable_rtems_debug=no])
-])
diff --git a/cpukit/aclocal/enable-smp.m4 b/cpukit/aclocal/enable-smp.m4
deleted file mode 100644
index 1448a2e..0000000
--- a/cpukit/aclocal/enable-smp.m4
+++ /dev/null
@@ -1,17 +0,0 @@
-AC_DEFUN([RTEMS_ENABLE_SMP],
-[
-## AC_BEFORE([$0], [RTEMS_CHECK_SMP])dnl
-
-AC_ARG_ENABLE(smp,
-[AS_HELP_STRING([--enable-smp],[enable support for symmetric multiprocessing
-(SMP)])],
-[case "${enableval}" in 
-  yes) case "${RTEMS_CPU}" in
-         arm|powerpc|riscv*|sparc|i386) RTEMS_HAS_SMP=yes ;;
-         *)          RTEMS_HAS_SMP=no ;;
-       esac
-       ;;
-  no) RTEMS_HAS_SMP=no ;;
-  *)  AC_MSG_ERROR(bad value ${enableval} for enable-smp option) ;;
-esac],[RTEMS_HAS_SMP=no]) 
-])
diff --git a/cpukit/aclocal/env-rtemscpu.m4 b/cpukit/aclocal/env-rtemscpu.m4
deleted file mode 100644
index 7c18e3f..0000000
--- a/cpukit/aclocal/env-rtemscpu.m4
+++ /dev/null
@@ -1,6 +0,0 @@
-AC_DEFUN([RTEMS_ENV_RTEMSCPU],
-[
-  AC_REQUIRE([RTEMS_ENABLE_MULTILIB])
-
-  AM_CONDITIONAL([MULTILIB],[test x"$multilib" = x"yes"])
-])
diff --git a/cpukit/aclocal/gcc-pipe.m4 b/cpukit/aclocal/gcc-pipe.m4
deleted file mode 100644
index fbc78b9..0000000
--- a/cpukit/aclocal/gcc-pipe.m4
+++ /dev/null
@@ -1,18 +0,0 @@
-dnl Check whether the target compiler accepts -pipe
-dnl
-
-AC_DEFUN([RTEMS_GCC_PIPE],
-[AC_REQUIRE([RTEMS_PROG_CC]) 
-AC_REQUIRE([AC_CANONICAL_HOST])
-AC_CACHE_CHECK(whether $CC accepts --pipe,rtems_cv_gcc_pipe,
-[
-rtems_cv_gcc_pipe=no
-if test x"$GCC" = x"yes"; then
-    echo 'void f(){}' >conftest.c
-    if test -z "`${CC} --pipe -c conftest.c 2>&1`";then
-      rtems_cv_gcc_pipe=yes
-    fi
-    rm -f conftest*
-fi
-])
-])
diff --git a/cpukit/aclocal/gcc-sanity.m4 b/cpukit/aclocal/gcc-sanity.m4
deleted file mode 100644
index 0177009..0000000
--- a/cpukit/aclocal/gcc-sanity.m4
+++ /dev/null
@@ -1,114 +0,0 @@
-# Some GCC sanity checks to check for known bugs in the rtems gcc toolchains
-
-# Internal macro
-# _RTEMS_GCC_WARNING(msg,cache-variable,include,main)
-AC_DEFUN([_RTEMS_GCC_WARNING],[
-  AC_CACHE_CHECK([$1],
-    [$2],[
-    AS_IF([test x"$GCC" = xyes],[
-      save_CFLAGS=$CFLAGS
-      CFLAGS="-Wall -Werror"])
-
-    AC_COMPILE_IFELSE([
-      AC_LANG_PROGRAM([$3],[$4])],
-      [$2=yes],
-      [$2=no])
-
-    AS_IF([test x"$GCC" = xyes],[
-      CFLAGS=$save_CFLAGS])
-  ])
-])
-
-AC_DEFUN([RTEMS_CHECK_GCC_PRIxPTR],[
-  _RTEMS_GCC_WARNING(
-    [if printf("%" PRIxPTR, uintptr_t) works],
-    [rtems_cv_PRIxPTR],[
-      #include <inttypes.h>
-      #include <stdio.h>
-    ],[
-      uintptr_t ptr = 42;
-      printf("%" PRIxPTR "\n", ptr);
-    ])
-])
-
-AC_DEFUN([RTEMS_CHECK_GCC_PRIuPTR],[
-  _RTEMS_GCC_WARNING(
-    [if printf("%" PRIuPTR, uintptr_t) works],
-    [rtems_cv_PRIuPTR],[
-      #include <inttypes.h>
-      #include <stdio.h>
-    ],[
-      uintptr_t ptr = 42;
-      printf("%" PRIuPTR "\n", ptr);
-    ])
-])
-
-AC_DEFUN([RTEMS_CHECK_GCC_PRIdPTR],[
-  _RTEMS_GCC_WARNING(
-    [if printf("%" PRIdPTR, intptr_t) works],
-    [rtems_cv_PRIdPTR],[
-      #include <inttypes.h>
-      #include <stdio.h>
-    ],[
-      intptr_t ptr = -1;
-      printf("%" PRIdPTR "\n", ptr);
-    ])
-])
-
-AC_DEFUN([RTEMS_CHECK_GCC_PRINTF_ZU_SIZE_T],[
-  _RTEMS_GCC_WARNING(
-    [if printf("%zu", size_t) works],
-    [rtems_cv_PRINTF_ZU_SIZE_T],[
-      #include <sys/types.h>
-      #include <stdio.h>
-    ],[
-      size_t sz = 1;
-      printf("%zu\n", sz);
-    ])
-])
-
-AC_DEFUN([RTEMS_CHECK_GCC_PRINTF_ZD_SSIZE_T],[
-  _RTEMS_GCC_WARNING(
-    [if printf("%zd", ssize_t) works],
-    [rtems_cv_PRINTF_ZD_SSIZE_T],[
-      #include <sys/types.h>
-      #include <stdio.h>
-    ],[
-      ssize_t sz = 1;
-      printf("%zd\n", sz);
-    ])
-])
-
-AC_DEFUN([RTEMS_CHECK_GCC_PRINTF_LD_OFF_T],[
-  _RTEMS_GCC_WARNING(
-    [if printf("%ld", off_t) works],
-    [rtems_cv_PRINTF_LD_OFF_T],[
-       #include <sys/types.h>
-       #include <stdio.h>
-    ],[
-      off_t off = 1;
-      printf("%ld\n", off);
-    ])
-])
-
-AC_DEFUN([RTEMS_CHECK_GCC_PRINTF_LLD_OFF_T],[
-  _RTEMS_GCC_WARNING(
-    [if printf("%lld", off_t) works],
-    [rtems_cv_PRINTF_LLD_OFF_T],[
-       #include <sys/types.h>
-       #include <stdio.h>
-    ],[
-      off_t off = 1;
-      printf("%lld\n", off);
-    ])
-])
-
-AC_DEFUN([RTEMS_CHECK_GCC_SANITY],[
-RTEMS_CHECK_GCC_PRIxPTR
-RTEMS_CHECK_GCC_PRIuPTR
-RTEMS_CHECK_GCC_PRIdPTR
-RTEMS_CHECK_GCC_PRINTF_ZU_SIZE_T
-RTEMS_CHECK_GCC_PRINTF_ZD_SSIZE_T
-RTEMS_CHECK_GCC_PRINTF_LD_OFF_T
-RTEMS_CHECK_GCC_PRINTF_LLD_OFF_T
-])
diff --git a/cpukit/aclocal/gcc-weak.m4 b/cpukit/aclocal/gcc-weak.m4
deleted file mode 100644
index 73cfb28..0000000
--- a/cpukit/aclocal/gcc-weak.m4
+++ /dev/null
@@ -1,19 +0,0 @@
-AC_DEFUN([RTEMS_CHECK_GCC_WEAK],[
-AC_CACHE_CHECK([whether $CC supports function __attribute__((weak))],
-[rtems_cv_cc_attribute_weak],[
-  AS_IF([test x"$GCC" = xyes],[
-    save_CFLAGS=$CFLAGS
-    CFLAGS=-Werror])
-
-  AC_COMPILE_IFELSE([
-    AC_LANG_PROGRAM(
-    [void myfunc(char c) __attribute__ ((weak));
-     void myfunc(char c) {}],
-    [])],
-    [rtems_cv_cc_attribute_weak=yes],
-    [rtems_cv_cc_attribute_weak=no])
-
-  AS_IF([test x"$GCC" = xyes],[
-    CFLAGS=$save_CFLAGS])
-])
-])
diff --git a/cpukit/aclocal/multi.m4 b/cpukit/aclocal/multi.m4
deleted file mode 100644
index 7cdc3cb..0000000
--- a/cpukit/aclocal/multi.m4
+++ /dev/null
@@ -1,50 +0,0 @@
-#serial 99
-
-AC_DEFUN([AC_ENABLE_MULTILIB],
-[
-AC_ARG_ENABLE(multilib,
-AS_HELP_STRING(--enable-multilib,build many library versions (default=no)),
-[case "${enableval}" in
-  yes) multilib=yes ;;
-  no)  multilib=no ;;
-  *)   AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
- esac], [multilib=no])dnl
-
-AM_CONDITIONAL(MULTILIB,test x"${multilib}" = x"yes")
-
-dnl We may get other options which we don't document:
-dnl --with-target-subdir, --with-multisrctop, --with-multisubdir
-
-if test "[$]{srcdir}" = "."; then
-  if test "[$]{with_target_subdir}" != "."; then
-    multilib_basedir="[$]{srcdir}/[$]{with_multisrctop}../ifelse([$2],,,[$2])"
-  else
-    multilib_basedir="[$]{srcdir}/[$]{with_multisrctop}ifelse([$2],,,[$2])"
-  fi
-else
-  multilib_basedir="[$]{srcdir}/ifelse([$2],,,[$2])"
-fi
-AC_SUBST(multilib_basedir)
-
-if test "${multilib}" = "yes"; then
-  multilib_arg="--enable-multilib"
-else
-  multilib_arg=
-fi
-
-AC_CONFIG_COMMANDS([default-1],[case " $CONFIG_FILES " in
- *" ]m4_if([$1],,Makefile,[$1])[ "*)
-    ac_file=]m4_if([$1],,Makefile,[$1])[ . ${multilib_basedir}/config-ml.in
-esac],[
-  srcdir=${srcdir}
-  host=${host}
-  target=${target}
-  with_multisrctop="${with_multisrctop}"
-  with_target_subdir="${with_target_subdir}"
-  with_multisubdir="${with_multisubdir}"
-  ac_configure_args="${multilib_arg} ${ac_configure_args}"
-  CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
-  multilib_basedir=${multilib_basedir}
-  CC="${CC}"
-])
-])
diff --git a/cpukit/aclocal/multilib.m4 b/cpukit/aclocal/multilib.m4
deleted file mode 100644
index 90e6217..0000000
--- a/cpukit/aclocal/multilib.m4
+++ /dev/null
@@ -1,14 +0,0 @@
-dnl This provides configure definitions used for multilib support
-
-AC_DEFUN([RTEMS_ENABLE_MULTILIB],
-[
-AC_ARG_ENABLE(multilib,
-AS_HELP_STRING(--enable-multilib,build many library versions (default=no)),
-[case "${enableval}" in
-  yes) multilib=yes ;;
-  no)  multilib=no ;;
-  *)   AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
- esac], [multilib=no])dnl
-
-AM_CONDITIONAL([MULTILIB],[test x"${multilib}" = x"yes"])
-])
diff --git a/cpukit/aclocal/prog-cc.m4 b/cpukit/aclocal/prog-cc.m4
deleted file mode 100644
index 9006e0e..0000000
--- a/cpukit/aclocal/prog-cc.m4
+++ /dev/null
@@ -1,38 +0,0 @@
-dnl 
-dnl Check for target gcc
-dnl
-
-AC_DEFUN([RTEMS_PROG_CC],
-[
-AC_BEFORE([$0], [AC_PROG_CPP])dnl
-AC_BEFORE([$0], [AC_PROG_CC])dnl
-AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
-
-RTEMS_CHECK_TOOL(CC,gcc)
-test -z "$CC" && \
-  AC_MSG_ERROR([no acceptable cc found in \$PATH])
-AC_PROG_CC
-AC_PROG_CPP
-])
-
-AC_DEFUN([RTEMS_PROG_CC_FOR_TARGET],
-[
-# Was CFLAGS set?
-rtems_cv_CFLAGS_set="${CFLAGS+set}"
-dnl check target cc
-RTEMS_PROG_CC
-dnl check if the target compiler may use --pipe
-RTEMS_GCC_PIPE
-test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe"
-
-# Append warning flags if CFLAGS wasn't set.
-AS_IF([test "$GCC" = yes && test "$rtems_cv_CFLAGS_set" != set],
-[CFLAGS="$CFLAGS -Wall -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs"])
-
-AS_IF([test "$GCC" = yes],[
-  RTEMS_RELLDFLAGS="-qnolinkcmds -nostdlib -r"
-])
-AC_SUBST(RTEMS_RELLDFLAGS)
-
-RTEMS_INCLUDES
-])
diff --git a/cpukit/aclocal/prog-ccas.m4 b/cpukit/aclocal/prog-ccas.m4
deleted file mode 100644
index c30b884..0000000
--- a/cpukit/aclocal/prog-ccas.m4
+++ /dev/null
@@ -1,6 +0,0 @@
-AC_DEFUN([RTEMS_PROG_CCAS],
-[
-AC_REQUIRE([RTEMS_PROG_CC])
-AM_PROG_AS
-AC_SUBST(RTEMS_CCASFLAGS,["-DASM \$(CFLAGS)"])
-])
diff --git a/cpukit/aclocal/rtems-bsp-includes.m4 b/cpukit/aclocal/rtems-bsp-includes.m4
deleted file mode 100644
index 2248211..0000000
--- a/cpukit/aclocal/rtems-bsp-includes.m4
+++ /dev/null
@@ -1,13 +0,0 @@
-dnl
-dnl RTEMS Include paths.
-dnl
-AC_DEFUN([RTEMS_BSP_INCLUDES],
-[
-AC_REQUIRE([RTEMS_SOURCE_TOP])
-AC_REQUIRE([RTEMS_BUILD_TOP])
-RTEMS_BSP_CPPFLAGS="-I${RTEMS_BUILD_ROOT}/lib/libbsp/\$(RTEMS_CPU)/\$(RTEMS_BSP_FAMILY)/include \
--I${RTEMS_SOURCE_ROOT}/bsps/include \
--I${RTEMS_SOURCE_ROOT}/bsps/\$(RTEMS_CPU)/include \
--I${RTEMS_SOURCE_ROOT}/bsps/\$(RTEMS_CPU)/\$(RTEMS_BSP_FAMILY)/include"
-AC_SUBST([RTEMS_BSP_CPPFLAGS])
-])
diff --git a/cpukit/aclocal/rtems-build-top.m4 b/cpukit/aclocal/rtems-build-top.m4
deleted file mode 100644
index 5708119..0000000
--- a/cpukit/aclocal/rtems-build-top.m4
+++ /dev/null
@@ -1,12 +0,0 @@
-dnl
-dnl RTEMS_BUILD_TOP($1)
-dnl
-AC_DEFUN([RTEMS_BUILD_TOP],
-[dnl
-#
-# This is a copy of the horrible hack in rtems-top.m4 and it is simpler to
-# copy it that attempt to clean this crap up.
-#
-RTEMS_BUILD_ROOT="${with_rtems_build_top}"
-AC_SUBST([RTEMS_BUILD_ROOT])
-])dnl
diff --git a/cpukit/aclocal/rtems-includes.m4 b/cpukit/aclocal/rtems-includes.m4
deleted file mode 100644
index ca4ebed..0000000
--- a/cpukit/aclocal/rtems-includes.m4
+++ /dev/null
@@ -1,23 +0,0 @@
-dnl
-dnl RTEMS Include paths.
-dnl
-AC_DEFUN([RTEMS_INCLUDES],
-[
-AC_REQUIRE([RTEMS_SOURCE_TOP])
-AC_REQUIRE([RTEMS_BUILD_TOP])
-
-# Was CFLAGS set?
-rtems_cv_CFLAGS_set="${CFLAGS+set}"
-
-RTEMS_INCLUDE_CPUKIT="-I${RTEMS_SOURCE_ROOT}/cpukit/include"
-RTEMS_INCLUDE_CPUKIT_ARCH="-I${RTEMS_SOURCE_ROOT}/cpukit/score/cpu/\$(RTEMS_CPU)/include"
-
-RTEMS_CPUKIT_INCLUDE="${RTEMS_INCLUDE_CPUKIT} ${RTEMS_INCLUDE_CPUKIT_ARCH}"
-RTEMS_BUILD_INCLUDE="-I\$(top_builddir) -I${RTEMS_BUILD_ROOT}/include"
-
-RTEMS_INCLUDE="${RTEMS_BUILD_INCLUDE} ${RTEMS_CPUKIT_INCLUDE}"
-
-RTEMS_CPPFLAGS="${RTEMS_INCLUDE}"
-
-AC_SUBST([RTEMS_CPPFLAGS])
-])
diff --git a/cpukit/aclocal/rtems-source-top.m4 b/cpukit/aclocal/rtems-source-top.m4
deleted file mode 100644
index d1460ae..0000000
--- a/cpukit/aclocal/rtems-source-top.m4
+++ /dev/null
@@ -1,8 +0,0 @@
-dnl
-dnl RTEMS_SOURCE_TOP
-dnl
-AC_DEFUN([RTEMS_SOURCE_TOP],
-[dnl
-RTEMS_SOURCE_ROOT="${with_rtems_source_top}"
-AC_SUBST([RTEMS_SOURCE_ROOT])
-])dnl
diff --git a/cpukit/aclocal/rtems-top.m4 b/cpukit/aclocal/rtems-top.m4
deleted file mode 100644
index b0cdaaa..0000000
--- a/cpukit/aclocal/rtems-top.m4
+++ /dev/null
@@ -1,70 +0,0 @@
-# AC_DISABLE_OPTION_CHECKING is not available before 2.62
-AC_PREREQ(2.62)
-
-dnl
-dnl RTEMS_TOP($1)
-dnl 
-dnl $1 .. relative path from this configure.ac to the toplevel configure.ac
-dnl
-AC_DEFUN([RTEMS_TOP],
-[dnl
-AC_REQUIRE([RTEMS_VERSIONING])
-AC_REQUIRE([AM_SET_LEADING_DOT])
-AC_REQUIRE([AC_DISABLE_OPTION_CHECKING])
-AC_CONFIG_AUX_DIR([$1])
-AC_CHECK_PROGS(MAKE, gmake make)
-AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl
-
-AC_PREFIX_DEFAULT([/opt/rtems-][_RTEMS_API])
-
-AC_SUBST([RTEMS_TOPdir],["$1"])
-
-# HACK: The sed pattern below strips of "../", corresponding to "cpukit/"
-rtems_updir=m4_if([$2],[],[`echo "$1/" | sed 's,^\.\.\/,,'`],[$2/])
-
-AS_IF([test -n "$with_multisubdir"],
-  [MULTIBUILDTOP=`echo "/$with_multisubdir" | sed 's,/[[^\\/]]*,../,g'`])
-AC_SUBST(MULTIBUILDTOP)
- 
-AS_IF([test -n "$with_multisubdir"],
-  [MULTISUBDIR="/$with_multisubdir"])
-AC_SUBST(MULTISUBDIR)
-
-AC_ARG_WITH([project-root],[
-AS_HELP_STRING(--with-project-root,directory to pre-install files into)],[
-## Make sure to have a terminating '/'
-case "${with_project_root}" in
-*/) ;;
-*) with_project_root="${with_project_root}/" ;;
-esac
-
-case "${with_project_root}" in
-  [[\\/$]]* | ?:[[\\/]]* ) # absolute directory
-   PROJECT_ROOT=${with_project_root}
-   ;;
-  *) # relative directory
-   sav0dir=`pwd` && cd ./${rtems_updir}
-   sav1dir=`pwd` && cd ../${MULTIBUILDTOP}
-   sav2dir=`pwd` && cd "$sav0dir"
-   mydir=`echo "$sav1dir" | sed "s,^$sav2dir${MULTISUBDIR}/,,"`
-   PROJECT_ROOT='$(top_builddir)'/${rtems_updir}'../$(MULTIBUILDTOP)'${mydir}/${with_project_root}
-   ;;
-esac],[
-## Defaults: Note: Two different defaults!
-## ../ for multilib
-## '.' for non-multilib
-AS_IF([test "$enable_multilib" = "yes"],[ 
-  PROJECT_ROOT='$(top_builddir)'/${rtems_updir}'../$(MULTIBUILDTOP)'],[
-  PROJECT_ROOT='$(top_builddir)'/${rtems_updir}])
-])
-
-AC_SUBST([PROJECT_INCLUDE],["${PROJECT_ROOT}lib/include"])
-AC_SUBST([PROJECT_LIB],["${PROJECT_ROOT}lib\$(MULTISUBDIR)"])
-
-libdir="${libdir}\$(MULTISUBDIR)"
-
-AC_SUBST([project_libdir],["\$(libdir)"])
-AC_SUBST([project_includedir],["\$(includedir)"])
-
-AC_SUBST([dirstamp],[\${am__leading_dot}dirstamp])
-])dnl
diff --git a/cpukit/aclocal/version.m4 b/cpukit/aclocal/version.m4
deleted file mode 100644
index 69e3eea..0000000
--- a/cpukit/aclocal/version.m4
+++ /dev/null
@@ -1,4 +0,0 @@
-AC_DEFUN([RTEMS_VERSIONING],
-m4_define([_RTEMS_VERSION],[6.0.0]))
-
-m4_define([_RTEMS_API],[6])
diff --git a/testsuites/aclocal/canonical-target-name.m4 b/testsuites/aclocal/canonical-target-name.m4
deleted file mode 100644
index d3c2531..0000000
--- a/testsuites/aclocal/canonical-target-name.m4
+++ /dev/null
@@ -1,25 +0,0 @@
-dnl canonicalize target cpu
-dnl NOTE: Most rtems targets do not fullfil autoconf's
-dnl target naming conventions "processor-vendor-os"
-dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
-dnl and we have to fix it for rtems ourselves 
-
-AC_DEFUN([RTEMS_CANONICAL_TARGET_CPU],
-[AC_REQUIRE([AC_CANONICAL_HOST])
-AC_MSG_CHECKING(rtems target cpu)
-case "${host}" in
-riscv*-*-rtems*)
-	RTEMS_CPU=riscv;;
-*-*-rtems*)
-	RTEMS_CPU="$host_cpu";;
-*)
-	;;
-esac
-AS_IF([test -n "$RTEMS_CPU"],
-[dnl
-AC_MSG_RESULT($RTEMS_CPU)],
-[dnl
-AC_MSG_RESULT([<none>])
-AC_MSG_ERROR([unsupported host $host])])
-AC_SUBST(RTEMS_CPU)
-])
diff --git a/testsuites/aclocal/canonicalize-tools.m4 b/testsuites/aclocal/canonicalize-tools.m4
deleted file mode 100644
index d4f9241..0000000
--- a/testsuites/aclocal/canonicalize-tools.m4
+++ /dev/null
@@ -1,20 +0,0 @@
-dnl Set target tools
-dnl
-
-AC_DEFUN([RTEMS_CANONICALIZE_TOOLS],
-[AC_REQUIRE([RTEMS_PROG_CC])dnl
-
-dnl FIXME: What shall be done if these tools are not available?
-  RTEMS_CHECK_TOOL(AR,ar,no)
-  RTEMS_CHECK_TOOL(AS,as,no)
-  RTEMS_CHECK_TOOL(LD,ld,no)
-  RTEMS_CHECK_TOOL(NM,nm,no)
-
-dnl special treatment of ranlib
-  RTEMS_CHECK_TOOL(RANLIB,ranlib,:)
-
-dnl NOTE: These may not be available if not using gnutools
-  RTEMS_CHECK_TOOL(OBJCOPY,objcopy,no)
-  RTEMS_CHECK_TOOL(SIZE,size,no)
-  RTEMS_CHECK_TOOL(STRIP,strip,:)
-])
diff --git a/testsuites/aclocal/check-cpuopts.m4 b/testsuites/aclocal/check-cpuopts.m4
deleted file mode 100644
index e399f13..0000000
--- a/testsuites/aclocal/check-cpuopts.m4
+++ /dev/null
@@ -1,21 +0,0 @@
-
-# RTEMS_CHECK_CPUOPTS(define)
-AC_DEFUN([RTEMS_CHECK_CPUOPTS],
-[
-AC_REQUIRE([RTEMS_BUILD_TOP])
-sav_CPPFLAGS="$CPPFLAGS"
-CPPFLAGS="$CPPFLAGS -I${RTEMS_BUILD_ROOT}/include"
-AC_CACHE_CHECK(
-  [for $1],
-  [rtems_cv_$1],
-  [AC_COMPILE_IFELSE([AC_LANG_SOURCE([
-#include <rtems/score/cpuopts.h>
-#ifndef $1
-choke me
-#endif
-    ])],
-    [rtems_cv_$1=yes],
-    [rtems_cv_$1=no])
-  ])
-CPPFLAGS="$sav_CPPFLAGS"
-])
diff --git a/testsuites/aclocal/check-custom-bsp.m4 b/testsuites/aclocal/check-custom-bsp.m4
deleted file mode 100644
index 8857adc..0000000
--- a/testsuites/aclocal/check-custom-bsp.m4
+++ /dev/null
@@ -1,22 +0,0 @@
-AC_DEFUN([_RTEMS_CHECK_CUSTOM_BSP],[
-AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl sets RTEMS_CPU, target
-AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
-  for i in ${rtems_rootdir}make/custom/$1;
-  do
-    AC_MSG_CHECKING([for $i])
-    AS_IF([test -r $i],[
-      $2="$i"
-      AC_MSG_RESULT([yes])
-      break;
-    ],[
-      AC_MSG_RESULT([no])
-    ])
-  done
-])
-
-AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[
-  _RTEMS_CHECK_CUSTOM_BSP([[$]$1.cfg],[BSP_FOUND])
-  AS_IF([test -z "$BSP_FOUND"],[
-    AC_MSG_ERROR([missing [$]$1.cfg])
-  ])
-])
diff --git a/testsuites/aclocal/check-cxx.m4 b/testsuites/aclocal/check-cxx.m4
deleted file mode 100644
index 9fbea4e..0000000
--- a/testsuites/aclocal/check-cxx.m4
+++ /dev/null
@@ -1,20 +0,0 @@
-dnl
-AC_DEFUN([RTEMS_CHECK_CXX],
-[dnl
-AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl
-AC_REQUIRE([RTEMS_PROG_CC_FOR_TARGET])dnl
-AC_REQUIRE([RTEMS_PROG_CXX_FOR_TARGET])dnl
-AC_CACHE_CHECK([whether to build rtems++],
-  rtems_cv_HAS_CPLUSPLUS,
-  [ if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
-      if test -n "$CXX"; then
-        rtems_cv_HAS_CPLUSPLUS="yes"
-      else
-        rtems_cv_HAS_CPLUSPLUS="no"
-      fi
-    else
-      rtems_cv_HAS_CPLUSPLUS="no"
-    fi])
-HAS_CPLUSPLUS="$rtems_cv_HAS_CPLUSPLUS";
-AC_SUBST(HAS_CPLUSPLUS)dnl
-])
diff --git a/testsuites/aclocal/check-tool.m4 b/testsuites/aclocal/check-tool.m4
deleted file mode 100644
index 2bc137c..0000000
--- a/testsuites/aclocal/check-tool.m4
+++ /dev/null
@@ -1,9 +0,0 @@
-## Check for a cross tool, similar to AC_CHECK_TOOL, but do not fall back to
-## the un-prefixed version of PROG-TO-CHECK-FOR.
-dnl RTEMS_CHECK_TOOL(VARIABLE, PROG-TO-CHECK-FOR[, VALUE-IF-NOT-FOUND [, PATH]])
-AC_DEFUN([RTEMS_CHECK_TOOL],
-[
-  AS_IF([test "x$build_alias" != "x$host_alias"],
-    [rtems_tool_prefix=${ac_tool_prefix}])
-  AC_CHECK_PROG($1, ${rtems_tool_prefix}$2, ${rtems_tool_prefix}$2, $3, $4)
-])
diff --git a/testsuites/aclocal/enable-cxx.m4 b/testsuites/aclocal/enable-cxx.m4
deleted file mode 100644
index 952f015..0000000
--- a/testsuites/aclocal/enable-cxx.m4
+++ /dev/null
@@ -1,11 +0,0 @@
-AC_DEFUN([RTEMS_ENABLE_CXX],
-[
-AC_ARG_ENABLE(cxx,
-[AS_HELP_STRING([--enable-cxx],
-[enable C++ support])],
-[case "${enable_cxx}" in
-  yes) RTEMS_HAS_CPLUSPLUS=yes ;;
-  no) RTEMS_HAS_CPLUSPLUS=no   ;;
-  *)  AC_MSG_ERROR(bad value ${enableval} for enable-cxx option) ;;
-esac], [RTEMS_HAS_CPLUSPLUS=yes])
-])
diff --git a/testsuites/aclocal/enable-tests.m4 b/testsuites/aclocal/enable-tests.m4
deleted file mode 100644
index 9373924..0000000
--- a/testsuites/aclocal/enable-tests.m4
+++ /dev/null
@@ -1,11 +0,0 @@
-AC_DEFUN([RTEMS_ENABLE_TESTS],
-[
-AC_ARG_ENABLE(tests,
-[AS_HELP_STRING(--enable-tests,enable tests (default:samples))],
-  [case "${enableval}" in
-    samples) enable_tests=samples;;
-    yes) enable_tests=yes ;;
-    no)  enable_tests=no ;;
-    *)   AC_MSG_ERROR([bad value ${enableval} for --enable-tests]) ;;
-  esac], [enable_tests=samples])
-])
diff --git a/testsuites/aclocal/env-rtemsbsp.m4 b/testsuites/aclocal/env-rtemsbsp.m4
deleted file mode 100644
index 1cca7d9..0000000
--- a/testsuites/aclocal/env-rtemsbsp.m4
+++ /dev/null
@@ -1,27 +0,0 @@
-dnl Pass a single BSP via an environment variable
-dnl used by per BSP configure scripts
-AC_DEFUN([RTEMS_ENV_RTEMSBSP],
-[dnl
-AC_BEFORE([$0], [RTEMS_ENABLE_RTEMSBSP])dnl
-AC_BEFORE([$0], [RTEMS_PROJECT_ROOT])dnl
-AC_BEFORE([$0], [RTEMS_CHECK_CUSTOM_BSP])dnl
-
-AC_ARG_VAR([RTEMS_BSP_FAMILY],[RTEMS's BSP directory])
-
-AC_ARG_VAR([RTEMS_BSP],[RTEMS_BSP to build])
-AC_MSG_CHECKING([for RTEMS_BSP])
-AC_CACHE_VAL(rtems_cv_RTEMS_BSP,
-[dnl
-  test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
-])dnl
-if test -z "$rtems_cv_RTEMS_BSP"; then
-  AC_MSG_ERROR([Missing RTEMS_BSP])
-fi
-RTEMS_BSP="$rtems_cv_RTEMS_BSP"
-AC_MSG_RESULT(${RTEMS_BSP})
-AC_SUBST(RTEMS_BSP)
-
-AC_SUBST([PROJECT_INCLUDE],["\$(PROJECT_ROOT)/lib/include"])
-AC_SUBST([PROJECT_LIB],["\$(PROJECT_ROOT)/lib"])
-AC_SUBST([PROJECT_RELEASE],["\$(PROJECT_ROOT)"])
-])
diff --git a/testsuites/aclocal/gcc-specs.m4 b/testsuites/aclocal/gcc-specs.m4
deleted file mode 100644
index ddcc2bf..0000000
--- a/testsuites/aclocal/gcc-specs.m4
+++ /dev/null
@@ -1,16 +0,0 @@
-dnl Check whether the target compiler accepts -specs
-
-AC_DEFUN([RTEMS_GCC_SPECS],
-[AC_REQUIRE([RTEMS_PROG_CC])
-AC_CACHE_CHECK(whether $CC accepts -specs,rtems_cv_gcc_specs,
-[
-rtems_cv_gcc_specs=no
-if test x"$GCC" = x"yes"; then
-  touch confspec
-  echo 'void f(){}' >conftest.c
-  if test -z "`${CC} -specs confspec -c conftest.c 2>&1`";then
-    rtems_cv_gcc_specs=yes
-  fi
-fi
-rm -f confspec conftest*
-])])
diff --git a/testsuites/aclocal/prog-cc.m4 b/testsuites/aclocal/prog-cc.m4
deleted file mode 100644
index cf6be7d..0000000
--- a/testsuites/aclocal/prog-cc.m4
+++ /dev/null
@@ -1,40 +0,0 @@
-dnl 
-dnl Check for target gcc
-dnl
-
-AC_DEFUN([RTEMS_PROG_CC],
-[
-AC_BEFORE([$0], [AC_PROG_CPP])dnl
-AC_BEFORE([$0], [AC_PROG_CC])dnl
-AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
-
-case "$host" in
-*-*-rtems*) ac_cv_exeext=.exe;;
-esac
-
-RTEMS_CHECK_TOOL(CC,gcc)
-test -z "$CC" && \
-  AC_MSG_ERROR([no acceptable cc found in \$PATH])
-AC_PROG_CC
-AC_PROG_CPP
-])
-
-AC_DEFUN([RTEMS_PROG_CC_FOR_TARGET],
-[
-dnl check target cc
-RTEMS_PROG_CC
-
-dnl check if the compiler supports -specs
-RTEMS_GCC_SPECS
-
-AS_IF([test x"$GCC" = xyes],[
-GCCSPECS="-B\$(RTEMS_SOURCE_ROOT)/bsps/\$(RTEMS_CPU)/\$(RTEMS_BSP_FAMILY)/start"
-AS_IF([test x"$rtems_cv_gcc_specs" = xyes],[
-GCCSPECS="${GCCSPECS} -specs bsp_specs"])
-GCCSPECS="${GCCSPECS} -qrtems"])
-AC_SUBST(GCCSPECS)
-
-RTEMS_INCLUDES
-RTEMS_BSP_INCLUDES
-RTEMS_BSP_LINKCMDS
-])
diff --git a/testsuites/aclocal/prog-cxx.m4 b/testsuites/aclocal/prog-cxx.m4
deleted file mode 100644
index aac9c37..0000000
--- a/testsuites/aclocal/prog-cxx.m4
+++ /dev/null
@@ -1,49 +0,0 @@
-dnl
-dnl Check for target g++
-dnl
-
-AC_DEFUN([RTEMS_PROG_CXX_FOR_TARGET],
-[
-AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
-AC_REQUIRE([RTEMS_ENABLE_CXX])
-RTEMS_CHECK_CPUOPTS([RTEMS_SMP])
-
-# If CXXFLAGS is not set, default to CFLAGS
-if test x"$rtems_cv_HAS_SMP" = x"yes" ; then
-  CXXFLAGS=${CXXFLAGS-${CFLAGS} -std=gnu++11}
-else
-  CXXFLAGS=${CXXFLAGS-${CFLAGS}}
-fi
-
-CXXFLAGS=`echo ${CXXFLAGS} | sed \
-  -e s/-Wmissing-prototypes// \
-  -e s/-Wimplicit-function-declaration// \
-  -e s/-Wstrict-prototypes// \
-  -e s/-Wnested-externs//`
-
-RTEMS_CHECK_TOOL(CXX,g++)
-if test "$RTEMS_HAS_CPLUSPLUS" = "yes";
-then
-  dnl Only accept g++
-  dnl NOTE: This might be too restrictive
-  if test -z "$CXX";
-  then
-    RTEMS_HAS_CPLUSPLUS=no
-    HAS_CPLUSPLUS=no
-    ## Work-around to a bug in automake
-    AM_CONDITIONAL([am__fastdepCXX],[false])
-  else
-    AC_PROG_CXX
-    AC_PROG_CXXCPP
-    if test "$ac_cv_prog_cc_cross" != "$ac_cv_prog_cxx_cross"; then
-      AC_MSG_ERROR([***]
-       [Inconsistency in compiler configuration:]
-       [Target C compiler and target C++ compiler]
-       [must both either be cross compilers or native compilers])
-    fi
-  fi
-else
-  ## Work-around to a bug in automake
-  AM_CONDITIONAL([am__fastdepCXX],[false])
-fi
-])
diff --git a/testsuites/aclocal/project-root.m4 b/testsuites/aclocal/project-root.m4
deleted file mode 100644
index 641baee..0000000
--- a/testsuites/aclocal/project-root.m4
+++ /dev/null
@@ -1,7 +0,0 @@
-AC_DEFUN([RTEMS_PROJECT_ROOT],
-[dnl
-AC_REQUIRE([RTEMS_TOP])
-BIN2C=rtems-bin2c
-AC_SUBST(BIN2C)
-])
-
diff --git a/testsuites/aclocal/rtems-bsp-includes.m4 b/testsuites/aclocal/rtems-bsp-includes.m4
deleted file mode 100644
index 2248211..0000000
--- a/testsuites/aclocal/rtems-bsp-includes.m4
+++ /dev/null
@@ -1,13 +0,0 @@
-dnl
-dnl RTEMS Include paths.
-dnl
-AC_DEFUN([RTEMS_BSP_INCLUDES],
-[
-AC_REQUIRE([RTEMS_SOURCE_TOP])
-AC_REQUIRE([RTEMS_BUILD_TOP])
-RTEMS_BSP_CPPFLAGS="-I${RTEMS_BUILD_ROOT}/lib/libbsp/\$(RTEMS_CPU)/\$(RTEMS_BSP_FAMILY)/include \
--I${RTEMS_SOURCE_ROOT}/bsps/include \
--I${RTEMS_SOURCE_ROOT}/bsps/\$(RTEMS_CPU)/include \
--I${RTEMS_SOURCE_ROOT}/bsps/\$(RTEMS_CPU)/\$(RTEMS_BSP_FAMILY)/include"
-AC_SUBST([RTEMS_BSP_CPPFLAGS])
-])
diff --git a/testsuites/aclocal/rtems-bsp-linkcmds.m4 b/testsuites/aclocal/rtems-bsp-linkcmds.m4
deleted file mode 100644
index 0ad8867..0000000
--- a/testsuites/aclocal/rtems-bsp-linkcmds.m4
+++ /dev/null
@@ -1,25 +0,0 @@
-dnl
-dnl RTEMS Include paths.
-dnl
-dnl This is messy because the linkcmds have no clear and defined structure.
-dnl There are BSP named linkcmds files, plain linkcmds file, configure template
-dnl .in files configure changes and shared versions of these. The approach to have
-dnl a single file for a number of BSPs in a family is sound, the lack of rules
-dnl means we have a range of variants and this results in following code.
-dnl
-dnl The preinstall hid a number of questionable things and preinstall has gone.
-dnl
-AC_DEFUN([RTEMS_BSP_LINKCMDS],
-[
-AC_REQUIRE([RTEMS_SOURCE_TOP])
-AC_REQUIRE([RTEMS_BUILD_TOP])
-
-AC_MSG_CHECKING([BSP linkcmds])
-
-RTEMS_BSP_ARCH_PATH="${RTEMS_SOURCE_ROOT}/bsps/${RTEMS_CPU}"
-RTEMS_BSP_ARCH_LINKCMDS_PATH="${RTEMS_BSP_ARCH_PATH}/shared/start"
-RTEMS_BSP_LIBBSP_PATH="${RTEMS_BUILD_ROOT}/lib/libbsp/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}"
-
-AC_SUBST(RTEMS_BSP_ARCH_LINKCMDS_PATH)
-AC_SUBST(RTEMS_BSP_LIBBSP_PATH)
-])
diff --git a/testsuites/aclocal/rtems-build-top.m4 b/testsuites/aclocal/rtems-build-top.m4
deleted file mode 100644
index 5708119..0000000
--- a/testsuites/aclocal/rtems-build-top.m4
+++ /dev/null
@@ -1,12 +0,0 @@
-dnl
-dnl RTEMS_BUILD_TOP($1)
-dnl
-AC_DEFUN([RTEMS_BUILD_TOP],
-[dnl
-#
-# This is a copy of the horrible hack in rtems-top.m4 and it is simpler to
-# copy it that attempt to clean this crap up.
-#
-RTEMS_BUILD_ROOT="${with_rtems_build_top}"
-AC_SUBST([RTEMS_BUILD_ROOT])
-])dnl
diff --git a/testsuites/aclocal/rtems-includes.m4 b/testsuites/aclocal/rtems-includes.m4
deleted file mode 100644
index ca4ebed..0000000
--- a/testsuites/aclocal/rtems-includes.m4
+++ /dev/null
@@ -1,23 +0,0 @@
-dnl
-dnl RTEMS Include paths.
-dnl
-AC_DEFUN([RTEMS_INCLUDES],
-[
-AC_REQUIRE([RTEMS_SOURCE_TOP])
-AC_REQUIRE([RTEMS_BUILD_TOP])
-
-# Was CFLAGS set?
-rtems_cv_CFLAGS_set="${CFLAGS+set}"
-
-RTEMS_INCLUDE_CPUKIT="-I${RTEMS_SOURCE_ROOT}/cpukit/include"
-RTEMS_INCLUDE_CPUKIT_ARCH="-I${RTEMS_SOURCE_ROOT}/cpukit/score/cpu/\$(RTEMS_CPU)/include"
-
-RTEMS_CPUKIT_INCLUDE="${RTEMS_INCLUDE_CPUKIT} ${RTEMS_INCLUDE_CPUKIT_ARCH}"
-RTEMS_BUILD_INCLUDE="-I\$(top_builddir) -I${RTEMS_BUILD_ROOT}/include"
-
-RTEMS_INCLUDE="${RTEMS_BUILD_INCLUDE} ${RTEMS_CPUKIT_INCLUDE}"
-
-RTEMS_CPPFLAGS="${RTEMS_INCLUDE}"
-
-AC_SUBST([RTEMS_CPPFLAGS])
-])
diff --git a/testsuites/aclocal/rtems-source-top.m4 b/testsuites/aclocal/rtems-source-top.m4
deleted file mode 100644
index d1460ae..0000000
--- a/testsuites/aclocal/rtems-source-top.m4
+++ /dev/null
@@ -1,8 +0,0 @@
-dnl
-dnl RTEMS_SOURCE_TOP
-dnl
-AC_DEFUN([RTEMS_SOURCE_TOP],
-[dnl
-RTEMS_SOURCE_ROOT="${with_rtems_source_top}"
-AC_SUBST([RTEMS_SOURCE_ROOT])
-])dnl
diff --git a/testsuites/aclocal/rtems-test-check.m4 b/testsuites/aclocal/rtems-test-check.m4
deleted file mode 100644
index 99b3e31..0000000
--- a/testsuites/aclocal/rtems-test-check.m4
+++ /dev/null
@@ -1,31 +0,0 @@
-dnl
-dnl Check a test getting it's status.
-dnl
-AC_DEFUN([RTEMS_TEST_CHECK],
-[AC_REQUIRE([RTEMS_ENV_RTEMSBSP])
- AC_REQUIRE([RTEMS_SOURCE_TOP])
- AC_MSG_CHECKING([${RTEMS_CPU}/${RTEMS_BSP} $1 test])
- tcheck="${RTEMS_SOURCE_ROOT}/testsuites/rtems-test-check"
- tdata="${RTEMS_BSP}-testsuite.tcfg"
- tincludes="${RTEMS_SOURCE_ROOT}/bsps/${RTEMS_CPU}:${RTEMS_SOURCE_ROOT}/bsps/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}:${RTEMS_SOURCE_ROOT}/bsps/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}/config:${RTEMS_SOURCE_ROOT}/testsuites"
- if test -f $tcheck; then
-  check_result=`$tcheck exclude ${RTEMS_BSP} $tdata $tincludes $1`
- else
-  check_result=$1
- fi
- if test "$1" = "$check_result"; then
-  if test -f $tcheck; then
-   test_CFLAGS=`$tcheck cflags ${RTEMS_BSP} $tdata $tincludes $1`
-  fi
-  if test -z "$test_CFLAGS"; then
-   result_msg="PASS"
-  else
-   result_msg="$test_CFLAGS"
-  fi
- else
-   result_msg="EXCLUDED"
- fi
- AC_MSG_RESULT([$result_msg])
- AM_CONDITIONAL([TEST_$1], [test "$result_msg" != "EXCLUDED"])
- AC_SUBST([TEST_FLAGS_$1], [$test_CFLAGS])
-])
diff --git a/testsuites/aclocal/rtems-top.m4 b/testsuites/aclocal/rtems-top.m4
deleted file mode 100644
index acb5732..0000000
--- a/testsuites/aclocal/rtems-top.m4
+++ /dev/null
@@ -1,83 +0,0 @@
-# AC_DISABLE_OPTION_CHECKING is not available before 2.62
-AC_PREREQ(2.62)
-
-dnl
-dnl RTEMS_TOP($1)
-dnl 
-dnl $1 .. relative path from this configure.ac to the toplevel configure.ac
-dnl
-AC_DEFUN([RTEMS_TOP],
-[dnl
-AC_REQUIRE([RTEMS_VERSIONING])
-AC_REQUIRE([AM_SET_LEADING_DOT])
-AC_REQUIRE([AC_DISABLE_OPTION_CHECKING])
-AC_CONFIG_AUX_DIR([$1])
-AC_CHECK_PROGS(MAKE, gmake make)
-AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl
-
-AC_PREFIX_DEFAULT([/opt/rtems-][_RTEMS_API])
-
-## HACK to allow gnu-make conditionals in automake-Makefiles.
-ENDIF=endif
-AC_SUBST(ENDIF)
-
-AC_SUBST([RTEMS_TOPdir],["$1"])
-
-rtems_updir=m4_if([$2],[],[],[$2/])
-
-AC_ARG_ENABLE([rtems-root],[
-AS_HELP_STRING(--enable-rtems-root,directory containing make/custom)],
-[case ${enable_rtems_root} in
-  [[\\/$]]* | ?:[[\\/]]* ) # absolute directory
-   rtems_rootdir=${enable_rtems_root}
-   RTEMS_ROOT=${enable_rtems_root}
-   ;;
-  *) # relative directory
-   rtems_rootdir=${rtems_updir}${enable_rtems_root}
-   RTEMS_ROOT='$(top_builddir)'/${rtems_updir}${enable_rtems_root}
-   ;;
-esac],[
-rtems_rootdir=${rtems_updir}
-RTEMS_ROOT='$(top_builddir)'/${rtems_updir}
-])
-AC_SUBST([RTEMS_ROOT])
-
-AS_IF([test -n "${with_target_subdir}"],
-  [project_top="../${with_project_top}"],
-  [project_top="${with_project_top}"])
-AC_SUBST([PROJECT_TOPdir],[${project_top}${rtems_updir}'$(top_builddir)'])
-
-AC_ARG_ENABLE([cpukit-root],[
-AS_HELP_STRING(--enable-cpukit-root,directory containing lib/librtemscpu.a)],
-[case ${enable_cpukit_root} in
-  [[\\/$]]* | ?:[[\\/]]* ) # absolute directory
-   cpukit_rootdir=${enable_cpukit_root}
-   CPUKIT_ROOT=${enable_cpukit_root}
-   ;;
-  *) # relative directory
-   cpukit_rootdir=${rtems_updir}${enable_cpukit_root}
-   CPUKIT_ROOT='$(top_builddir)'/${rtems_updir}${enable_cpukit_root}
-   ;;
-esac],[
-cpukit_rootdir=
-CPUKIT_ROOT=
-])
-AC_SUBST([CPUKIT_ROOT])
-
-AC_ARG_ENABLE([project-root],[
-AS_HELP_STRING(--enable-project-root,directory containing lib/librtemsbsp.a)],
-[case ${enable_project_root} in
-  [[\\/$]]* | ?:[[\\/]]* ) # absolute directory
-   project_rootdir=${enable_project_root}
-   PROJECT_ROOT=${enable_project_root}
-   ;;
-  *) # relative directory
-   project_rootdir=${rtems_updir}${enable_project_root}
-   PROJECT_ROOT='$(top_builddir)'/${rtems_updir}${enable_project_root}
-   ;;
-esac],[
-project_rootdir=
-PROJECT_ROOT=
-])
-AC_SUBST([PROJECT_ROOT])
-])dnl
diff --git a/testsuites/aclocal/version.m4 b/testsuites/aclocal/version.m4
deleted file mode 100644
index 69e3eea..0000000
--- a/testsuites/aclocal/version.m4
+++ /dev/null
@@ -1,4 +0,0 @@
-AC_DEFUN([RTEMS_VERSIONING],
-m4_define([_RTEMS_VERSION],[6.0.0]))
-
-m4_define([_RTEMS_API],[6])
diff --git a/testsuites/ada/aclocal/prog-gnat.m4 b/testsuites/ada/aclocal/prog-gnat.m4
deleted file mode 100644
index a2b2879..0000000
--- a/testsuites/ada/aclocal/prog-gnat.m4
+++ /dev/null
@@ -1,44 +0,0 @@
-##
-## Partially borrowed from gcc-3.2
-##
-## WARNING: All the stuff below is pretty immature.
-
-AC_DEFUN([RTEMS_PROG_GNAT],
-[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])
-AC_REQUIRE([RTEMS_PROG_CC_FOR_TARGET])
-
-AC_CHECK_TOOL([GNATMAKE],[gnatmake],[])
-AC_CACHE_CHECK([for compiler driver that understands Ada],
-  [rtems_cv_prog_CCADA],
-[cat >conftest.adb <<EOF
-procedure conftest is begin null; end conftest;
-EOF
-rtems_cv_prog_CCADA=
-# Have to do ac_tool_prefix and user overrides by hand.
-user_ccada=$CCADA
-user_cc=$CC
-for cand in ${ac_tool_prefix}$user_ccada	$user_ccada	\
-	    ${ac_tool_prefix}$user_cc		$user_cc	\
-	    ${ac_tool_prefix}gcc		gcc		\
-	    ${ac_tool_prefix}cc			cc		\
-	    ${ac_tool_prefix}gnatgcc		gnatgcc		\
-	    ${ac_tool_prefix}gnatcc		gnatcc		\
-	    ${ac_tool_prefix}adagcc		adagcc		\
-	    ${ac_tool_prefix}adac		adac		; do
-  # There is a bug in all released versions of GCC which causes the
-  # driver to exit successfully when the appropriate language module
-  # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
-  # Therefore we must check for the error message as well as an
-  # unsuccessful exit.
-  errors=`($cand -c conftest.adb) 2>&1 || echo failure`
-  AS_IF([test -z "$errors"],
-    [rtems_cv_prog_CCADA=$cand
-     break])
-done
-rm -f conftest.*])
-AC_SUBST([CCADA],[$rtems_cv_prog_CCADA])
-
-AS_IF([test -n "$GNATMAKE" && test -n "$CCADA"],
-  [HAVE_GNAT=yes],
-  [HAVE_GNAT=no])
-])



More information about the vc mailing list