diff options
Diffstat (limited to '')
-rw-r--r-- | macros/tool-prefix.m4 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/macros/tool-prefix.m4 b/macros/tool-prefix.m4 new file mode 100644 index 0000000000..563cca8e8f --- /dev/null +++ b/macros/tool-prefix.m4 @@ -0,0 +1,22 @@ +dnl +dnl $Id$ +dnl +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 + +changequote(,)dnl +if [ "${program_prefix}" = "NONE" ] ; then + if [ "${target}" = "${host}" ] ; then + program_prefix= + else + program_prefix=${target}- + fi +fi +changequote([,])dnl +]) |