summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-05-21 16:46:24 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-05-21 16:46:24 +0000
commit6207ea2986987ffb71af53b8885fe0352b501fa3 (patch)
tree4b7bda7e6ce9be50390e11e1cf9541c6d57a7439
parentNew file from Eric Valette (diff)
downloadrtems-6207ea2986987ffb71af53b8885fe0352b501fa3.tar.bz2
New file from Ralf Corsepius
Diffstat (limited to '')
-rw-r--r--aclocal/tool-prefix.m417
1 files changed, 17 insertions, 0 deletions
diff --git a/aclocal/tool-prefix.m4 b/aclocal/tool-prefix.m4
new file mode 100644
index 0000000000..fae1652aef
--- /dev/null
+++ b/aclocal/tool-prefix.m4
@@ -0,0 +1,17 @@
+dnl Set program_prefix
+dnl
+dnl 98/05/20 Ralf Corsepius (corsepiu@faw.uni-ulm.de)
+dnl Extracted from configure
+
+AC_DEFUN(RTEMS_TOOL_PREFIX,
+[AC_REQUIRE([AC_CANONICAL_TARGET])dnl
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
+
+if [[ "${program_prefix}" = "NONE" ]] ; then
+ if [[ "${target}" = "${host}" ]] ; then
+ program_prefix=
+ else
+ program_prefix=${target}-
+ fi
+fi
+])