source: rtems/aclocal/canonical-host.m4 @ 8c92fa3

4.104.114.84.9
Last change on this file since 8c92fa3 was 04c308c, checked in by Joel Sherrill <joel.sherrill@…>, on Mar 19, 1999 at 11:11:36 PM

Incorporated automake I patch from Ralf Corsepius <corsepiu@…>:

This is the first real automake patch.

It adds automake support to c/build-tools and cleans up a few minor
issues.

I consider this to be a testing probe to examine problems with automake.
Therefore, this patch is just a more or less harmless replacement of the
former RTEMS Makefiles and I expect it not last for long. If you want to
give automake Makefiles a public try and if you want/need to learn about
problems with it, then it's about time for a new snapshot, IMO. I may
have screwed up something not directly related to automake, but I expect
very few (none to be precise) problems with automake. However, somebody
should at least try building on Cygwin. If you feel a bit more
adventureous, then I also can continue to submit more patches.

[FYI: I still have a couple of automake files laying around, but they
need some cleanup before being submitted as patches. Now, that I am just
into it, I'll perhaps submit another one tonight :-]

After applying this patch (patch -p1 -E <
<path-to>/rtems-rc-19990318-0), first run the "autogen" script from the
toplevel source directory, before committing to CVS. Be careful about
dependencies between Makefile.am and Makefile.ins when cutting tarballs
from CVS. Makefile.ins are required to be newer than Makefile.ams,
otherwise users would need to have automake, autoconf and perl. Some
people recommend to "touch" all Makefile.in after checkout from cvs (cf.
egcs/contrib/egcs_update).

ATTENTION:

  • This patch adds a number of new files.
  • remove aclocal/exeext.m4 and aclocal/cygwin.m4 from CVS, They are now covered by autoconf-2.13`s AC_EXEEXT.

Some features/side-effects which are probably interesting for you:
In a configured build-tree "cd c/build-tools", then try

  • "make RTEMS_BSP=<bsp> install"
  • "make RTEMS_BSP=<bsp> dist"
  • Property mode set to 100644
File size: 484 bytes
Line 
1dnl $Id$
2
3AC_DEFUN(RTEMS_CANONICAL_HOST,
4[dnl
5AC_REQUIRE([AC_CANONICAL_HOST])
6RTEMS_HOST=$host_os
7changequote(,)dnl
8case "${target}" in
9  # hpux unix port should go here
10  i[3456]86-pc-linux*)         # unix "simulator" port
11        RTEMS_HOST=Linux
12        ;;
13  i[3456]86-*freebsd2*) # unix "simulator" port
14        RTEMS_HOST=FreeBSD
15        ;;
16  sparc-sun-solaris*)             # unix "simulator" port
17        RTEMS_HOST=Solaris
18        ;;
19  *)
20        ;;
21esac
22changequote([,])dnl
23AC_SUBST(RTEMS_HOST)
24])dnl
Note: See TracBrowser for help on using the repository browser.