summaryrefslogtreecommitdiffstats
path: root/c/src/aclocal
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-26 14:00:41 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-09-21 07:39:09 +0200
commitdb8f598d56951cf43f22a5e325e0d23c8f7559f9 (patch)
tree607bc2e2c842bb932bce53efc7423e73ef18f6ff /c/src/aclocal
parentarm/lpc24xx: Use common test definition file (diff)
downloadrtems-db8f598d56951cf43f22a5e325e0d23c8f7559f9.tar.bz2
build: Remove old build system
Close #3250. Close #4081.
Diffstat (limited to 'c/src/aclocal')
-rw-r--r--c/src/aclocal/bsp-alias.m420
-rw-r--r--c/src/aclocal/bsp-arg-enable.m417
-rw-r--r--c/src/aclocal/bsp-bootcard-options.m49
-rw-r--r--c/src/aclocal/bsp-bspcleanup-options.m429
-rw-r--r--c/src/aclocal/bsp-configure.m449
-rw-r--r--c/src/aclocal/bsp-linkcmds.m418
-rw-r--r--c/src/aclocal/bspopts.m482
-rw-r--r--c/src/aclocal/canonical-target-name.m425
-rw-r--r--c/src/aclocal/canonicalize-tools.m413
-rw-r--r--c/src/aclocal/check-custom-bsp.m420
-rw-r--r--c/src/aclocal/check-cxx.m418
-rw-r--r--c/src/aclocal/check-multiprocessing.m437
-rw-r--r--c/src/aclocal/check-networking.m430
-rw-r--r--c/src/aclocal/check-posix.m431
-rw-r--r--c/src/aclocal/check-smp.m417
-rw-r--r--c/src/aclocal/check-tool.m49
-rw-r--r--c/src/aclocal/config-subdirs.m432
-rw-r--r--c/src/aclocal/enable-cxx.m411
-rw-r--r--c/src/aclocal/enable-drvmgr.m412
-rw-r--r--c/src/aclocal/enable-multiprocessing.m413
-rw-r--r--c/src/aclocal/enable-networking.m413
-rw-r--r--c/src/aclocal/enable-posix.m421
-rw-r--r--c/src/aclocal/enable-smp.m417
-rw-r--r--c/src/aclocal/env-rtemsbsp.m437
-rw-r--r--c/src/aclocal/gcc-isystem.m422
-rw-r--r--c/src/aclocal/gcc-pipe.m417
-rw-r--r--c/src/aclocal/gcc-specs.m416
-rw-r--r--c/src/aclocal/gcc-weak.m419
-rw-r--r--c/src/aclocal/i386-gas-code16.m427
-rw-r--r--c/src/aclocal/multilib.m416
-rw-r--r--c/src/aclocal/path-ksh.m412
-rw-r--r--c/src/aclocal/ppc.m419
-rw-r--r--c/src/aclocal/prog-cc.m445
-rw-r--r--c/src/aclocal/prog-ccas.m46
-rw-r--r--c/src/aclocal/prog-cxx.m449
-rw-r--r--c/src/aclocal/project-root.m44
-rw-r--r--c/src/aclocal/quoting.m441
-rw-r--r--c/src/aclocal/rtems-bsp-includes.m413
-rw-r--r--c/src/aclocal/rtems-build-top.m412
-rw-r--r--c/src/aclocal/rtems-cpu-subdirs.m432
-rw-r--r--c/src/aclocal/rtems-includes.m423
-rw-r--r--c/src/aclocal/rtems-source-top.m48
-rw-r--r--c/src/aclocal/rtems-top.m434
-rw-r--r--c/src/aclocal/target.m4134
-rw-r--r--c/src/aclocal/tool-paths.m423
-rw-r--r--c/src/aclocal/version.m44
46 files changed, 0 insertions, 1156 deletions
diff --git a/c/src/aclocal/bsp-alias.m4 b/c/src/aclocal/bsp-alias.m4
deleted file mode 100644
index 77d8205aba..0000000000
--- a/c/src/aclocal/bsp-alias.m4
+++ /dev/null
@@ -1,20 +0,0 @@
-dnl _RTEMS_BSP_ALIAS(BSP_ALIAS,RTEMS_BSP_FAMILY)
-dnl Internal subroutine to RTEMS_BSP_ALIAS
-AC_DEFUN([_RTEMS_BSP_ALIAS],[
-AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])
-AC_REQUIRE([RTEMS_SOURCE_TOP])
-# account for "aliased" bsps which share source code
- for bsp_cfgs in `ls "${RTEMS_SOURCE_ROOT}/bsps/${RTEMS_CPU}"/*/"config/$1.cfg" 2>/dev/null`; do
- $2=`echo "$bsp_cfgs" | sed \
- -e "s,^${RTEMS_SOURCE_ROOT}/bsps/$RTEMS_CPU/,," \
- -e "s,/config/.*\.cfg$,,"`
- break
- done
-])
-
-dnl RTEMS_BSP_ALIAS(BSP_ALIAS,RTEMS_BSP_FAMILY)
-dnl convert a bsp alias $1 into its bsp directory RTEMS_BSP_FAMILY
-AC_DEFUN([RTEMS_BSP_ALIAS],
-[_RTEMS_BSP_ALIAS(m4_if([$1],,[$RTEMS_BSP],[$1]),
- m4_if([$2],,[RTEMS_BSP_FAMILY],[$2]))]
-)
diff --git a/c/src/aclocal/bsp-arg-enable.m4 b/c/src/aclocal/bsp-arg-enable.m4
deleted file mode 100644
index e5a9100024..0000000000
--- a/c/src/aclocal/bsp-arg-enable.m4
+++ /dev/null
@@ -1,17 +0,0 @@
-dnl
-dnl RTEMS_BSP_ARG_ENABLE(FEATURE, HELP-STRING, ACTION-IF-TRUE [, ACTION-IF-FALSE])
-dnl
-dnl Accept --enable-FEATURE=<RTEMS_BSP>:<bsp-value> and
-dnl --enable-FEATURE=<value> in BSP-configure scripts.
-dnl
-dnl Configure scripts will receive <bsp-value> if <RTEMS_BSP> matches the
-dnl actual value of the shell variable RTEMS_BSP (cf. RTEMS_ENV_RTEMSBSP),
-dnl and the raw value passed to --enable-FEATURE otherwise.
-dnl
-AC_DEFUN([RTEMS_BSP_ARG_ENABLE],
-[AC_REQUIRE([RTEMS_ENV_RTEMSBSP])
-AC_ARG_ENABLE([$1],[$2],
-[enableval=`echo "[$enable_]patsubst([$1], -, _)" | sed -e "s%^${RTEMS_BSP}:%%"`
- eval "[enable_]patsubst([$1], -, _)='$enableval'"
-$3],[$4])
-])
diff --git a/c/src/aclocal/bsp-bootcard-options.m4 b/c/src/aclocal/bsp-bootcard-options.m4
deleted file mode 100644
index b0d25f383c..0000000000
--- a/c/src/aclocal/bsp-bootcard-options.m4
+++ /dev/null
@@ -1,9 +0,0 @@
-dnl
-dnl BSP_BOOTCARD_OPTIONS - some autoconf voodoo to provide each BSPs'
-dnl configure script with the standard options supported by boot_card()
-dnl and other required parts of the BSP Framework.
-dnl
-
-dnl To be used in bsp-configure scripts
-
-AC_DEFUN([RTEMS_BSP_BOOTCARD_OPTIONS],[])
diff --git a/c/src/aclocal/bsp-bspcleanup-options.m4 b/c/src/aclocal/bsp-bspcleanup-options.m4
deleted file mode 100644
index 60be886070..0000000000
--- a/c/src/aclocal/bsp-bspcleanup-options.m4
+++ /dev/null
@@ -1,29 +0,0 @@
-dnl
-dnl RTEMS_BSP_CLEANUP_OPTIONS - some autoconf voodoo to provide each BSPs'
-dnl configure script with the standard options supported by the shared
-dnl implementation of bsp_fatal_extension().
-dnl
-dnl To be used in bsp-configure scripts
-dnl
-dnl USAGE:
-dnl RTEMS_BSP_CLEANUP_OPTIONS
-
-AC_DEFUN([RTEMS_BSP_CLEANUP_OPTIONS],[
-RTEMS_BSPOPTS_SET([BSP_PRESS_KEY_FOR_RESET],[*],[0])
-RTEMS_BSPOPTS_HELP([BSP_PRESS_KEY_FOR_RESET],
-[If defined to a non-zero value, print a message and wait until pressed before
-resetting board when application exits.])
-
-RTEMS_BSPOPTS_SET([BSP_RESET_BOARD_AT_EXIT],[*],[1])
-RTEMS_BSPOPTS_HELP([BSP_RESET_BOARD_AT_EXIT],
-[If defined to a non-zero value, reset the board when the application exits.])
-
-RTEMS_BSPOPTS_SET([BSP_PRINT_EXCEPTION_CONTEXT],[*],[1])
-RTEMS_BSPOPTS_HELP([BSP_PRINT_EXCEPTION_CONTEXT],
-[If defined to a non-zero value, prints the exception context when an
-unexpected exception occurs.])
-
-RTEMS_BSPOPTS_SET([BSP_VERBOSE_FATAL_EXTENSION],[*],[1])
-RTEMS_BSPOPTS_HELP([BSP_VERBOSE_FATAL_EXTENSION],
-[If defined to a non-zero value, prints the some information in case of a fatal
-error.])])
diff --git a/c/src/aclocal/bsp-configure.m4 b/c/src/aclocal/bsp-configure.m4
deleted file mode 100644
index 2b892e5852..0000000000
--- a/c/src/aclocal/bsp-configure.m4
+++ /dev/null
@@ -1,49 +0,0 @@
-dnl RTEMS_BSP_CONFIGURE
-dnl Common macro to be included by all bsp-configure.acs
-AC_DEFUN([RTEMS_BSP_CONFIGURE],
-[
- AC_PREREQ(2.60)
- AM_MAINTAINER_MODE
- RTEMS_ENV_RTEMSBSP
-
- RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
-
- AC_CONFIG_HEADERS([include/bspopts.tmp:bspopts.h.in],[
-echo "/* BSP dependent options file */" >$tmp/config.h
-echo "/* automatically generated -- DO NOT EDIT!! */" >>$tmp/config.h
-echo >>$tmp/config.h
-echo "#ifndef __BSP_OPTIONS_H" >>$tmp/config.h
-echo "#define __BSP_OPTIONS_H" >>$tmp/config.h
-echo >>$tmp/config.h
-sed \
- -e '/.*PACKAGE.*/d' \
- -e '/\/\* Define to.*this package.*\*\//d' \
-include/bspopts.tmp >> $tmp/config.h
-echo >>$tmp/config.h
-echo "#endif /* __BSP_OPTIONS_H */" >>$tmp/config.h
- AS_IF([cmp -s include/bspopts.h $tmp/config.h 2>/dev/null],[
- AC_MSG_NOTICE([include/bspopts.h is unchanged])
- rm -f $tmp/config.h],[
- AC_MSG_NOTICE([creating include/bspopts.h])
- rm -f include/bspopts.h
- mv $tmp/config.h include/bspopts.h
- ])
-])
- RTEMS_PROJECT_ROOT
-
- RTEMS_PROG_CC_FOR_TARGET
- RTEMS_CANONICALIZE_TOOLS
- RTEMS_PROG_CCAS
-
- RTEMS_CHECK_MULTIPROCESSING
- RTEMS_CHECK_NETWORKING
- RTEMS_CHECK_SMP
-
- AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
- AM_CONDITIONAL(HAS_SMP,test "$rtems_cv_HAS_SMP" = "yes")
-
- RTEMS_BSP_BOOTCARD_OPTIONS
-
- RTEMS_BSPOPTS_HELP([RTEMS_BSP],[The RTEMS BSP name])
- RTEMS_BSPOPTS_SET([RTEMS_BSP],[*],[$RTEMS_BSP])
-])
diff --git a/c/src/aclocal/bsp-linkcmds.m4 b/c/src/aclocal/bsp-linkcmds.m4
deleted file mode 100644
index ce7b72d186..0000000000
--- a/c/src/aclocal/bsp-linkcmds.m4
+++ /dev/null
@@ -1,18 +0,0 @@
-dnl Install a BSP's linkcmds from the source-tree into the build-tree
-AC_DEFUN([RTEMS_BSP_LINKCMDS],[
-AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])
-LINKCMDS=
-for f in "${srcdir}/../../../../../../bsps/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}/start/linkcmds.${RTEMS_BSP}" \
- "${srcdir}/../../../../../../bsps/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}/start/linkcmds.${RTEMS_BSP_FAMILY}" \
- "${srcdir}/../../../../../../bsps/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}/start/linkcmds";
-do
- AS_IF([test -f "$f"],[
- LINKCMDS="$f"
- break])
-done
-
-AS_IF([test -z "${LINKCMDS}"],[
- AC_MSG_ERROR([can not determine linkcmds])])
-
-AC_CONFIG_LINKS([linkcmds:${LINKCMDS}])
-])
diff --git a/c/src/aclocal/bspopts.m4 b/c/src/aclocal/bspopts.m4
deleted file mode 100644
index 342c7258b9..0000000000
--- a/c/src/aclocal/bspopts.m4
+++ /dev/null
@@ -1,82 +0,0 @@
-dnl
-dnl RTEMS_BSPOPTS_* - some autoconf voodoo to handle default values and
-dnl help-strings for per-BSP-environment variables.
-
-dnl To be used in bsp-configure scripts
-
-
-dnl Example:
-dnl
-dnl RTEMS_BSPOPTS_SET([foo],[bar],[0])
-dnl RTEMS_BSPOPTS_SET([foo],[baz*],[hello])
-dnl RTEMS_BSPOPTS_SET([foo],[*],[])
-dnl RTEMS_BSPOPTS_HELP([foo],[env. variable foo])
-dnl -> Add "0" as default value of variable "foo" for BSP "bar"
-dnl -> Add "hello" as default value of variable "foo" for all BSPs starting
-dnl with "baz" in their name.
-dnl -> Undefine foo as default clause for all BSP's.
-dnl
-dnl All this basically expands to a /bin/shell "case"-statement with
-dnl accompanying autoconf magic to propagate VAR to bspopts.h.
-
-
-dnl RTEMS_BSPOPTS_HELP(VAR,HELP-STRING)
-dnl Set up printing the HELP-STRING for bspopts.h's variable VAR and add
-dnl appropriate /bin/sh-magic to "configure" to have VAR set up.
-
-AC_DEFUN([RTEMS_BSPOPTS_HELP],[
-RTEMS_ARG_VAR([$1],[$2])
-m4_ifdef([_$1],[
-case "${RTEMS_BSP}" in
-_$1[]dnl
-esac],[])
-if test -n "[$]{$1}"; then[]dnl
-AC_DEFINE_UNQUOTED([$1],
- [[$]$1],
- [$2])dnl
-fi
-])
-
-dnl RTEMS_BSPOPTS_SET(VAR,BSP,DEFAULT)
-dnl Set up a value DEFAULT to be used as default value for variable VAR for
-dnl BSP in RTEMS_BSPOPTS_HELP.
-
-dnl MUST be used in front of exactly _one_ corresponding RTEMS_BSPOPTS_HELP
-
-AC_DEFUN([RTEMS_BSPOPTS_SET],[dnl
-m4_append([_$1],
-[$2 )
- $1=[$]{$1-$3} ;;
-])
-])
-
-
-dnl RTEMS_ARG_VAR(VAR,HELP-STRING)
-dnl An internal macros to have RTEMS_BSPOPTS_HELP's help string pretty
-dnl printed with configure --help.
-dnl Stripped down version of autoconf-2.52's AC_ARG_VAR.
-
-AC_DEFUN([RTEMS_ARG_VAR],
-[
-m4_expand_once([m4_divert_once([HELP_VAR],
-[AS_HELP_STRING([$1],[$2], )])],
- [$0($1)])dnl
-])
-
-AC_DEFUN(
-[RTEMS_BSPOPTS_SET_DATA_CACHE_ENABLED],
-[RTEMS_BSPOPTS_SET([BSP_DATA_CACHE_ENABLED],[$1],[$2])])
-
-AC_DEFUN(
-[RTEMS_BSPOPTS_HELP_DATA_CACHE_ENABLED],
-[RTEMS_BSPOPTS_HELP([BSP_DATA_CACHE_ENABLED],
-[enables the data cache, if defined to a value other than zero])])
-
-AC_DEFUN(
-[RTEMS_BSPOPTS_SET_INSTRUCTION_CACHE_ENABLED],
-[RTEMS_BSPOPTS_SET([BSP_INSTRUCTION_CACHE_ENABLED],[$1],[$2])])
-
-AC_DEFUN(
-[RTEMS_BSPOPTS_HELP_INSTRUCTION_CACHE_ENABLED],
-[RTEMS_BSPOPTS_HELP([BSP_INSTRUCTION_CACHE_ENABLED],
-[enables the instruction cache, if defined to a value other than zero])])
diff --git a/c/src/aclocal/canonical-target-name.m4 b/c/src/aclocal/canonical-target-name.m4
deleted file mode 100644
index d3c2531cda..0000000000
--- a/c/src/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/c/src/aclocal/canonicalize-tools.m4 b/c/src/aclocal/canonicalize-tools.m4
deleted file mode 100644
index 8fd551385c..0000000000
--- a/c/src/aclocal/canonicalize-tools.m4
+++ /dev/null
@@ -1,13 +0,0 @@
-dnl Set target tools
-
-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)
-
-dnl special treatment of ranlib
- RTEMS_CHECK_TOOL(RANLIB,ranlib,:)
-])
diff --git a/c/src/aclocal/check-custom-bsp.m4 b/c/src/aclocal/check-custom-bsp.m4
deleted file mode 100644
index 11c2f1f7d2..0000000000
--- a/c/src/aclocal/check-custom-bsp.m4
+++ /dev/null
@@ -1,20 +0,0 @@
-AC_DEFUN([_RTEMS_CHECK_CUSTOM_BSP],[
-AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl sets RTEMS_CPU, target
-AC_REQUIRE([RTEMS_SOURCE_TOP])dnl sets RTEMS_SOURCE_ROOT
- $2=
- for i in \
- `ls "${RTEMS_SOURCE_ROOT}/bsps/${RTEMS_CPU}"/*/config/$1 2>/dev/null`;
- do
- AS_IF([test -r $i],[
- $2="$i"
- break;
- ])
- 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/c/src/aclocal/check-cxx.m4 b/c/src/aclocal/check-cxx.m4
deleted file mode 100644
index e679d4e296..0000000000
--- a/c/src/aclocal/check-cxx.m4
+++ /dev/null
@@ -1,18 +0,0 @@
-AC_DEFUN([RTEMS_CHECK_CXX],
-[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/c/src/aclocal/check-multiprocessing.m4 b/c/src/aclocal/check-multiprocessing.m4
deleted file mode 100644
index ee2ea3a75c..0000000000
--- a/c/src/aclocal/check-multiprocessing.m4
+++ /dev/null
@@ -1,37 +0,0 @@
-AC_DEFUN([RTEMS_CHECK_MULTIPROCESSING],
-[dnl
-AC_REQUIRE([RTEMS_ENABLE_MULTILIB])dnl
-AC_REQUIRE([RTEMS_ENV_RTEMSBSP])dnl
-AC_REQUIRE([RTEMS_TOP])dnl
-AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl
-AC_REQUIRE([RTEMS_ENABLE_MULTIPROCESSING])dnl
-
-AC_CACHE_CHECK([if wanting multiprocessing],
- [rtems_cv_want_multiprocessing],
- [
- AS_IF([test x"$multilib" = x"no"],
- [# no cpukit
- rtems_cv_want_multiprocessing="$enable_multiprocessing"
- ],[
-#HACK: Should check for RTEMS_MULTIPROCESSING in cpuopts.h, instead
- rtems_cv_want_multiprocessing="$enable_multiprocessing"
- ])
- ])
-
-AS_IF([test "$rtems_cv_want_multiprocessing" = "yes"],
-[
- AC_CACHE_CHECK([whether BSP supports multiprocessing],
- [rtems_cv_HAS_MP],[
- if test -d "${RTEMS_SOURCE_ROOT}/bsps/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}/mpci"; then
- rtems_cv_HAS_MP="yes" ;
- else
- rtems_cv_HAS_MP="no";
- fi
- ])
-if test $rtems_cv_HAS_MP = "no"; then
-AC_MSG_ERROR([multiprocessing requested but not supported])
-fi
-],[rtems_cv_HAS_MP="no";])
-
-AM_CONDITIONAL(HAS_MP,[test x"$rtems_cv_HAS_MP" = x"yes"])
-])
diff --git a/c/src/aclocal/check-networking.m4 b/c/src/aclocal/check-networking.m4
deleted file mode 100644
index 8200dca98d..0000000000
--- a/c/src/aclocal/check-networking.m4
+++ /dev/null
@@ -1,30 +0,0 @@
-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 BSP 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"
- ;;
- *)
- if test "${RTEMS_HAS_NETWORKING}" = "yes"; then
- rtems_cv_HAS_NETWORKING="yes";
- else
- rtems_cv_HAS_NETWORKING="disabled";
- fi
- ;;
- esac])
-if test "$rtems_cv_HAS_NETWORKING" = "yes"; then
- HAS_NETWORKING="yes";
- RTEMS_CPPFLAGS="${RTEMS_CPPFLAGS} -I${RTEMS_SOURCE_ROOT}/cpukit/libnetworking";
-else
- HAS_NETWORKING="no";
-fi
-AC_SUBST(HAS_NETWORKING)dnl
-])
diff --git a/c/src/aclocal/check-posix.m4 b/c/src/aclocal/check-posix.m4
deleted file mode 100644
index 8ef64f06bc..0000000000
--- a/c/src/aclocal/check-posix.m4
+++ /dev/null
@@ -1,31 +0,0 @@
-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 "$RTEMS_CPU" in
- *)
- if test "${RTEMS_HAS_POSIX_API}" = "yes"; then
- rtems_cv_HAS_POSIX_API="yes";
- else
- rtems_cv_HAS_POSIX_API="disabled";
- fi
- ;;
- esac])
-if test "$rtems_cv_HAS_POSIX_API" = "yes"; then
- HAS_POSIX_API="yes";
-else
- HAS_POSIX_API="no";
-fi
-AC_SUBST(HAS_POSIX_API)dnl
-])
-
-AC_DEFUN([RTEMS_DEFINE_POSIX_API],
-[AC_REQUIRE([RTEMS_CHECK_POSIX_API])dnl
-AS_IF(
- [test x"${HAS_POSIX_API}" = x"yes"],
- [AC_DEFINE_UNQUOTED(RTEMS_POSIX_API,1,[if posix api is supported])])
-])
diff --git a/c/src/aclocal/check-smp.m4 b/c/src/aclocal/check-smp.m4
deleted file mode 100644
index b9b10b1bf2..0000000000
--- a/c/src/aclocal/check-smp.m4
+++ /dev/null
@@ -1,17 +0,0 @@
-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/c/src/aclocal/check-tool.m4 b/c/src/aclocal/check-tool.m4
deleted file mode 100644
index 2bc137cd96..0000000000
--- a/c/src/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/c/src/aclocal/config-subdirs.m4 b/c/src/aclocal/config-subdirs.m4
deleted file mode 100644
index ed1b29c625..0000000000
--- a/c/src/aclocal/config-subdirs.m4
+++ /dev/null
@@ -1,32 +0,0 @@
-dnl
-dnl Misc utility macros for subdir handling to work around missing abilities
-dnl in autoconf, automake and structural issues with RTEMS
-dnl
-dnl Contains parts derived from autoconf-2.13 AC_OUTPUT_SUBDIRS and Cygnus'
-dnl configure.ac.
-dnl
-
-dnl
-dnl _AC_DOTS(PATH)
-dnl
-AC_DEFUN([_AC_DOTS],[
-# A "../" for each directory in $1.
- ac_dots=`echo $1 | \
- sed -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'`
-])
-
-dnl
-dnl _RTEMS_ADJUST_SRCDIR(REVAR,CONFIG_DIR[,TARGET_SUBDIR])
-dnl
-AC_DEFUN([_RTEMS_ADJUST_SRCDIR],[
- _AC_DOTS(ifelse([$3], ,[$2],[$3/$2]))
-
- case "$srcdir" in
- .) # No --srcdir option. We are building in place.
- $1=$srcdir ;;
- [[\\/]]* | ?:[[\\/]]*) # Absolute path.
- $1=$srcdir/$2 ;;
- *) # Relative path.
- $1=$ac_dots$srcdir/$2 ;;
- esac
-])
diff --git a/c/src/aclocal/enable-cxx.m4 b/c/src/aclocal/enable-cxx.m4
deleted file mode 100644
index 952f0151a8..0000000000
--- a/c/src/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/c/src/aclocal/enable-drvmgr.m4 b/c/src/aclocal/enable-drvmgr.m4
deleted file mode 100644
index 489f60e75f..0000000000
--- a/c/src/aclocal/enable-drvmgr.m4
+++ /dev/null
@@ -1,12 +0,0 @@
-AC_DEFUN([RTEMS_ENABLE_DRVMGR],
-[
-## AC_BEFORE([$0], [RTEMS_CHECK_DRVMGR_STARTUP])dnl
-
-AC_ARG_ENABLE(drvmgr,
-[AS_HELP_STRING([--enable-drvmgr],[enable Driver Manager 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/c/src/aclocal/enable-multiprocessing.m4 b/c/src/aclocal/enable-multiprocessing.m4
deleted file mode 100644
index 53fa8ffe81..0000000000
--- a/c/src/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/c/src/aclocal/enable-networking.m4 b/c/src/aclocal/enable-networking.m4
deleted file mode 100644
index 8a9dc36cbd..0000000000
--- a/c/src/aclocal/enable-networking.m4
+++ /dev/null
@@ -1,13 +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])
-AC_SUBST(RTEMS_HAS_NETWORKING)dnl
-])
diff --git a/c/src/aclocal/enable-posix.m4 b/c/src/aclocal/enable-posix.m4
deleted file mode 100644
index f96ec1ffcb..0000000000
--- a/c/src/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/c/src/aclocal/enable-smp.m4 b/c/src/aclocal/enable-smp.m4
deleted file mode 100644
index 1448a2e5eb..0000000000
--- a/c/src/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/c/src/aclocal/env-rtemsbsp.m4 b/c/src/aclocal/env-rtemsbsp.m4
deleted file mode 100644
index 2fcc7fe849..0000000000
--- a/c/src/aclocal/env-rtemsbsp.m4
+++ /dev/null
@@ -1,37 +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([CPU_CFLAGS],[CFLAGS specifying CPU-dependent features])
-# AC_ARG_VAR([CFLAGS_OPTIMIZE_V],[CFLAGS for building the OPTIMIZE variant])
-# AC_ARG_VAR([CFLAGS_DEBUG_V],[CFLAGS for building the DEBUG variant])
-AC_ARG_VAR([RTEMS_BSP_FAMILY],[RTEMS's BSP directory])
-AC_ARG_VAR([RTEMS_CPU_MODEL],[RTEMS's cpu model])
-
-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)
-
-includedir="\${exec_prefix}/${RTEMS_BSP}/lib/include"
-libdir="\${exec_prefix}/${RTEMS_BSP}/lib"
-
-AC_SUBST([PROJECT_INCLUDE],["\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"])
-AC_SUBST([PROJECT_LIB],["\$(PROJECT_ROOT)/$RTEMS_BSP/lib"])
-AC_SUBST([PROJECT_RELEASE],["\$(PROJECT_ROOT)/$RTEMS_BSP"])
-
-AC_SUBST([project_libdir],["\$(libdir)"])
-AC_SUBST([project_includedir],["\$(includedir)"])
-])
diff --git a/c/src/aclocal/gcc-isystem.m4 b/c/src/aclocal/gcc-isystem.m4
deleted file mode 100644
index c0eebf6432..0000000000
--- a/c/src/aclocal/gcc-isystem.m4
+++ /dev/null
@@ -1,22 +0,0 @@
-dnl Check whether the gcc accepts -isystem
-dnl
-
-AC_DEFUN([RTEMS_GCC_ISYSTEM],
-[AC_REQUIRE([RTEMS_PROG_CC])
-AC_CACHE_CHECK(whether $CC accepts -isystem,rtems_cv_gcc_isystem,
-[
-rtems_cv_gcc_isystem=no
-if test x"$GCC" = x"yes"; then
-cat << EOF > conftest.h
-int conftest123();
-EOF
-cat << EOF > conftest.c
-#include <conftest.h>
-int conftest123() {}
-EOF
- if test -z "`${CC} -isystem./ -c conftest.c 2>&1`";then
- rtems_cv_gcc_isystem=yes
- fi
-fi
-rm -f conftest*
-])])
diff --git a/c/src/aclocal/gcc-pipe.m4 b/c/src/aclocal/gcc-pipe.m4
deleted file mode 100644
index 06fed1ca13..0000000000
--- a/c/src/aclocal/gcc-pipe.m4
+++ /dev/null
@@ -1,17 +0,0 @@
-dnl Check whether the target compiler accepts -pipe
-
-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/c/src/aclocal/gcc-specs.m4 b/c/src/aclocal/gcc-specs.m4
deleted file mode 100644
index ddcc2bfb0c..0000000000
--- a/c/src/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/c/src/aclocal/gcc-weak.m4 b/c/src/aclocal/gcc-weak.m4
deleted file mode 100644
index 73cfb28e7e..0000000000
--- a/c/src/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/c/src/aclocal/i386-gas-code16.m4 b/c/src/aclocal/i386-gas-code16.m4
deleted file mode 100644
index 9c12d7bee3..0000000000
--- a/c/src/aclocal/i386-gas-code16.m4
+++ /dev/null
@@ -1,27 +0,0 @@
-dnl check for i386 gas supporting 16 bit mode
-dnl - binutils 2.9.1.0.7 and higher
-
-AC_DEFUN([RTEMS_I386_GAS_CODE16],
-[ if test "${host_cpu}" = "i386"; then
- AC_CACHE_CHECK([for 16 bit mode assembler support],
- rtems_cv_prog_gas_code16,
- [cat > conftest.s << EOF
- .code16
- data32
- addr32
- lgdt 0
-EOF
- if AC_TRY_COMMAND($AS -o conftest.o conftest.s); then
- rtems_cv_prog_gas_code16=yes
- else
- rtems_cv_prog_gas_code16=no
- fi])
- RTEMS_GAS_CODE16="$rtems_cv_prog_gas_code16"
- fi
- AC_SUBST(RTEMS_GAS_CODE16)
- if test x"${RTEMS_GAS_CODE16}" = x"yes";
- then
- AC_DEFINE_UNQUOTED(NEW_GAS,1,[if using 16 bit mode assembler support])
- fi
-])
-
diff --git a/c/src/aclocal/multilib.m4 b/c/src/aclocal/multilib.m4
deleted file mode 100644
index 042ae52aff..0000000000
--- a/c/src/aclocal/multilib.m4
+++ /dev/null
@@ -1,16 +0,0 @@
-dnl This provides configure definitions used for multilib support
-
-dnl parts of these macros are derived from newlib-1.8.2's 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/c/src/aclocal/path-ksh.m4 b/c/src/aclocal/path-ksh.m4
deleted file mode 100644
index 2c79b31d1e..0000000000
--- a/c/src/aclocal/path-ksh.m4
+++ /dev/null
@@ -1,12 +0,0 @@
-AC_DEFUN([RTEMS_PATH_KSH],
-[
-dnl NOTE: prefer bash over ksh over sh
-AC_PATH_PROGS(KSH,bash ksh sh)
-if test -z "$KSH"; then
-dnl NOTE: This cannot happen -- /bin/sh must always exist
-AC_MSG_ERROR(
-[***]
-[ Cannot determine a usable shell bash/ksh/sh]
-[ Please contact your system administrator] );
-fi
-])
diff --git a/c/src/aclocal/ppc.m4 b/c/src/aclocal/ppc.m4
deleted file mode 100644
index 6beff2a941..0000000000
--- a/c/src/aclocal/ppc.m4
+++ /dev/null
@@ -1,19 +0,0 @@
-# Some hacks for handling powerpc-exception subdirectories
-#
-# Note: Consider this file a temporary band-aid until a better, more general
-# subdirectory handling solution is introduced to RTEMS.
-
-AC_DEFUN([RTEMS_PPC_EXCEPTIONS],
-[
-AC_MSG_CHECKING([for style of powerpc exceptions])
-AC_COMPILE_IFELSE(
- [AC_LANG_PROGRAM(
- [],
- [#if defined(_OLD_EXCEPTIONS)
- choke me
- #endif])],
- [EXCEPTIONS=new],
- [EXCEPTIONS=old])
-AC_MSG_RESULT([$EXCEPTIONS])
-AC_SUBST([exceptions],[$EXCEPTIONS-exceptions])
-])
diff --git a/c/src/aclocal/prog-cc.m4 b/c/src/aclocal/prog-cc.m4
deleted file mode 100644
index 39bec6914a..0000000000
--- a/c/src/aclocal/prog-cc.m4
+++ /dev/null
@@ -1,45 +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],
-[
-dnl check target cc
-RTEMS_PROG_CC
-dnl check if the compiler supports -isystem
-RTEMS_GCC_ISYSTEM
-dnl check if the target compiler may use --pipe
-RTEMS_GCC_PIPE
-test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe"
-
-dnl check if the compiler supports --specs
-RTEMS_GCC_SPECS
-
-dnl Compilers that does not support --specs (Clang) still needs -B and -qrtems
-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"])
-AC_SUBST(GCCSPECS)
-GCCSPECS="${GCCSPECS} -qrtems"
-
-AS_IF([test "$GCC" = yes],[
- RTEMS_RELLDFLAGS="-qnolinkcmds -nostdlib -r"
-])
-AC_SUBST(RTEMS_RELLDFLAGS)
-
-RTEMS_INCLUDES
-RTEMS_BSP_INCLUDES
-])
diff --git a/c/src/aclocal/prog-ccas.m4 b/c/src/aclocal/prog-ccas.m4
deleted file mode 100644
index edd08d841d..0000000000
--- a/c/src/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"])
-])
diff --git a/c/src/aclocal/prog-cxx.m4 b/c/src/aclocal/prog-cxx.m4
deleted file mode 100644
index e0ae7b468a..0000000000
--- a/c/src/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])
-AC_REQUIRE([RTEMS_CHECK_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/c/src/aclocal/project-root.m4 b/c/src/aclocal/project-root.m4
deleted file mode 100644
index dc9ba597bf..0000000000
--- a/c/src/aclocal/project-root.m4
+++ /dev/null
@@ -1,4 +0,0 @@
-AC_DEFUN([RTEMS_PROJECT_ROOT],
-[dnl
-AC_REQUIRE([RTEMS_TOP])
-])
diff --git a/c/src/aclocal/quoting.m4 b/c/src/aclocal/quoting.m4
deleted file mode 100644
index 0a95ae3e9b..0000000000
--- a/c/src/aclocal/quoting.m4
+++ /dev/null
@@ -1,41 +0,0 @@
-dnl RTEMS_CONFIGURE_ARGS_QUOTE(dnl RETURN_VAR, [ADDITIONAL_CASES], [VAR_TO_PROCESS]])
-dnl
-AC_DEFUN([_RTEMS_CONFIGURE_ARGS_QUOTE],
-[
-$1_prune()
-{
- # Remove --cache-file and --srcdir arguments so they do not pile up.
- $1=
- ac_prev=
- for ac_arg
- do
- if test -n "$ac_prev"; then
- ac_prev=
- continue
- fi
- case $ac_arg in
- -cache-file | --cache-file | --cache-fil | --cache-fi \
- | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
- ac_prev=cache_file ;;
- -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
- | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
- | --c=*)
- ;;
- --config-cache | -C)
- ;;
- -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
- ac_prev=srcdir ;;
- -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
- ;;
- m4_if([$2],,,[$2])
- *) $1="$$1 '$ac_arg'" ;;
- esac
- done
- export $1
-}
-])
-
-AC_DEFUN([RTEMS_CONFIGURE_ARGS_QUOTE],[
-m4_expand_once([_RTEMS_CONFIGURE_ARGS_QUOTE([$1],[$2])])
-eval $1_prune m4_if([$3],,[$ac_configure_args],[[$]$3])
-])
diff --git a/c/src/aclocal/rtems-bsp-includes.m4 b/c/src/aclocal/rtems-bsp-includes.m4
deleted file mode 100644
index 2248211192..0000000000
--- a/c/src/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/c/src/aclocal/rtems-build-top.m4 b/c/src/aclocal/rtems-build-top.m4
deleted file mode 100644
index 5708119c14..0000000000
--- a/c/src/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/c/src/aclocal/rtems-cpu-subdirs.m4 b/c/src/aclocal/rtems-cpu-subdirs.m4
deleted file mode 100644
index 7805f892dd..0000000000
--- a/c/src/aclocal/rtems-cpu-subdirs.m4
+++ /dev/null
@@ -1,32 +0,0 @@
-AC_DEFUN([_RTEMS_CPU_SUBDIR],
-[
-$1 ) if test -d ${srcdir}/ifelse([$2],,[$1],[$2/$1]) ; then
- AC_CONFIG_SUBDIRS(ifelse([$2],,[$1],[$2/$1]))
- fi
-])
-
-## RTEMS_CPU_SUBDIRS([PREFIX])
-AC_DEFUN([RTEMS_CPU_SUBDIRS],
-[
-## EDIT: If adding a new cpu to RTEMS, add it to the case block below.
-case $RTEMS_CPU in
-_RTEMS_CPU_SUBDIR([arm],[$1]);;
-_RTEMS_CPU_SUBDIR([bfin],[$1]);;
-_RTEMS_CPU_SUBDIR([i386],[$1]);;
-_RTEMS_CPU_SUBDIR([lm32],[$1]);;
-_RTEMS_CPU_SUBDIR([m68k],[$1]);;
-_RTEMS_CPU_SUBDIR([mips],[$1]);;
-_RTEMS_CPU_SUBDIR([moxie],[$1]);;
-_RTEMS_CPU_SUBDIR([nios2],[$1]);;
-_RTEMS_CPU_SUBDIR([no_cpu],[$1]);;
-_RTEMS_CPU_SUBDIR([or1k],[$1]);;
-_RTEMS_CPU_SUBDIR([powerpc],[$1]);;
-_RTEMS_CPU_SUBDIR([riscv],[$1]);;
-_RTEMS_CPU_SUBDIR([sh],[$1]);;
-_RTEMS_CPU_SUBDIR([sparc],[$1]);;
-_RTEMS_CPU_SUBDIR([sparc64],[$1]);;
-_RTEMS_CPU_SUBDIR([v850],[$1]);;
-_RTEMS_CPU_SUBDIR([x86_64],[$1]);;
-*) AC_MSG_ERROR([Invalid RTEMS_CPU <[$]{RTEMS_CPU}>])
-esac
-])
diff --git a/c/src/aclocal/rtems-includes.m4 b/c/src/aclocal/rtems-includes.m4
deleted file mode 100644
index ca4ebed581..0000000000
--- a/c/src/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/c/src/aclocal/rtems-source-top.m4 b/c/src/aclocal/rtems-source-top.m4
deleted file mode 100644
index d1460ae82d..0000000000
--- a/c/src/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/c/src/aclocal/rtems-top.m4 b/c/src/aclocal/rtems-top.m4
deleted file mode 100644
index 2472f13e95..0000000000
--- a/c/src/aclocal/rtems-top.m4
+++ /dev/null
@@ -1,34 +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([AC_DISABLE_OPTION_CHECKING])
-AC_REQUIRE([AM_SET_LEADING_DOT])
-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 in rtems_updir matches c/src/
-rtems_updir=m4_if([$2],[],[`echo "$1/" | sed 's,^\.\.\/\.\.\/,,'`],[$2/])
-
-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_SUBST([PROJECT_ROOT],[${with_project_root}${rtems_updir}'$(top_builddir)'])
-
-AC_SUBST([dirstamp],[\${am__leading_dot}dirstamp])
-AC_SUBST([pkgdatadir],["\${datadir}"/rtems]_RTEMS_API)
-])dnl
diff --git a/c/src/aclocal/target.m4 b/c/src/aclocal/target.m4
deleted file mode 100644
index 69f555eb6c..0000000000
--- a/c/src/aclocal/target.m4
+++ /dev/null
@@ -1,134 +0,0 @@
-## HACK: Work-around to structural issue with RTEMS
-## The macros below violate most autoconf and canonicalization standards
-AC_DEFUN([RTEMS_CONFIG_BUILD_SUBDIRS],
-[AC_REQUIRE([_RTEMS_OUTPUT_BUILD_SUBDIRS])
-RTEMS_BUILD_SUBDIRS="$RTEMS_BUILD_SUBDIRS [$1]"
-])
-
-dnl Derived from automake-1.4's AC_OUTPUT_SUBDIRS
-AC_DEFUN([_RTEMS_OUTPUT_BUILD_SUBDIRS],
-[AC_CONFIG_COMMANDS([bsp-tools],
-[
-# HACK: This is a blantant hack and breaks Canadian crosses
-build_alias="$build_alias"
-host_alias="$build_alias"
-if test "$no_recursion" != yes; then
- if test x"$build_alias" != x"$host_alias"; then
- target_subdir="$host_alias"
- else
- target_subdir="."
- fi
- RTEMS_CONFIGURE_ARGS_QUOTE([ac_sub_configure_args],
- [
- -host* | --host* ) ;;
- --host ) ac_prev=host_alias;;
- -target* | --target* ) ;;
- -target ) ac_prev=target_alias ;;
- -build* | --build* ) ;;
- -build ) ac_prev_build_alias ;;
- CFLAGS=* );; # HACK: Strip CFLAGS
- *_alias=* ) ;; # HACK: Workaround to autoconf passing *_alias
- ],
- [rtems_configure_args])
-
- for rtems_config_dir in : $RTEMS_BUILD_SUBDIRS; do test "x$rtems_config_dir" = x: && continue
-
- # Do not complain, so a configure script can configure whichever
- # parts of a large source tree are present.
- if test ! -d $srcdir/$rtems_config_dir; then
- continue
- fi
-
- _RTEMS_PUSH_BUILDDIR([$rtems_config_dir])
-
- _RTEMS_SUB_SRCDIR([$rtems_config_dir])
-
- # The recursion is here.
- if test -n "$ac_sub_configure"; then
-# ac_sub_cache_file=./config.cache
- ac_sub_cache_file=/dev/null
- _RTEMS_GIVEN_INSTALL
-
- echo "[running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file] --srcdir=$ac_sub_srcdir"
- # The eval makes quoting arguments work.
- if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure \
- $ac_sub_configure_args \
- --srcdir=$ac_sub_srcdir \
- --with-target-subdir=$target_subdir \
- --cache-file=$ac_sub_cache_file
- then :
- else
- AC_MSG_ERROR([$ac_sub_configure failed for $rtems_config_dir])
- fi
- fi
-
- _RTEMS_POP_BUILDDIR
- done
-fi],
-[
-RTEMS_BUILD_SUBDIRS="$RTEMS_BUILD_SUBDIRS"
-rtems_configure_args="$ac_configure_args"
-])
-])
-
-dnl
-dnl Misc utility macros for subdir handling to work around missing abilities
-dnl in autoconf, automake and structural issues with RTEMS
-dnl
-dnl Contains parts derived from autoconf-2.13 AC_OUTPUT_SUBDIRS and Cygnus'
-dnl configure.ac.
-dnl
-
-dnl
-dnl _RTEMS_PUSH_BUILDDIR(SUBDIR)
-dnl
-AC_DEFUN([_RTEMS_PUSH_BUILDDIR],
-[
-# _RTEMS_PUSH_BUILDDIR
- echo configuring in $1
- case "$srcdir" in
- .) ;;
- *) AS_MKDIR_P([$1])
- ;;
- esac
-
- ac_popdir=`pwd`
- cd $1
-])
-
-dnl
-dnl _RTEMS_POP_BUILDDIR
-dnl
-AC_DEFUN([_RTEMS_POP_BUILDDIR],
-[
- cd "$ac_popdir"
-])
-
-dnl
-dnl _RTEMS_GIVEN_INSTALL
-dnl
-AC_DEFUN([_RTEMS_GIVEN_INSTALL],
-[
-ifdef([AC_PROVIDE_AC_PROG_INSTALL],[
- case "$ac_given_INSTALL" in
- [[\\/]]* | ?:[[\\/]]*) INSTALL="$ac_given_INSTALL" ;;
- *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
- esac
-])dnl
-])
-
-dnl
-dnl _RTEMS_SUB_SRCDIR(AC_CONFIG_DIR[,TARGET_SUBDIR])
-dnl
-AC_DEFUN([_RTEMS_SUB_SRCDIR],[
-# _RTEMS_SUB_SRCDIR
- _RTEMS_ADJUST_SRCDIR(ac_sub_srcdir,$1,$2)
-
- # Check for configure
- if test -f $ac_sub_srcdir/configure; then
- ac_sub_configure=$ac_sub_srcdir/configure
- else
- AC_MSG_WARN([no configuration information is in $1])
- ac_sub_configure=
- fi
-])
diff --git a/c/src/aclocal/tool-paths.m4 b/c/src/aclocal/tool-paths.m4
deleted file mode 100644
index ff6e5f830e..0000000000
--- a/c/src/aclocal/tool-paths.m4
+++ /dev/null
@@ -1,23 +0,0 @@
-AC_DEFUN([RTEMS_TOOLPATHS],
-[
-# tooldir='$(exec_prefix)/'$target_alias
-# Temporary work-around until building in source tree is supported
-AC_REQUIRE([RTEMS_PROJECT_ROOT])
-
-tooldir='$(PROJECT_ROOT)'
-AC_SUBST(tooldir)
-
-project_includedir='$(tooldir)'/include
-AC_SUBST(project_includedir)
-
-project_libdir='$(tooldir)/lib$(MULTISUBDIR)'
-AC_SUBST(project_libdir)
-
-project_bindir='$(tooldir)/bin'
-AC_SUBST(project_bindir)
-
-rtems_bspdir='$(prefix)/${RTEMS_BSP}'
-AC_SUBST(rtems_bspdir)
-rtems_makedir='$(prefix)/make'
-AC_SUBST(rtems_makedir)
-])
diff --git a/c/src/aclocal/version.m4 b/c/src/aclocal/version.m4
deleted file mode 100644
index 69e3eea10a..0000000000
--- a/c/src/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])