Mercurial > nand-ecoscentric
annotate configure.in @ 2528:a2fb80f5315f
Update host-side configury
| author | bartv |
|---|---|
| date | Mon, 18 Aug 2008 13:34:28 +0000 |
| parents | d6a1854fdc1b |
| children | 74dbf4c3f2e1 |
| rev | line source |
|---|---|
|
208
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
1 dnl Process this file with autoconf to produce a configure script. |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
2 dnl ==================================================================== |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
3 dnl |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
4 dnl configure.in |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
5 dnl |
|
283
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
6 dnl Top-level configure script for eCos software. |
|
208
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
7 dnl |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
8 dnl ==================================================================== |
|
283
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
9 dnl ####ECOSHOSTGPLCOPYRIGHTBEGIN#### |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
10 dnl ---------------------------------------------------------------------------- |
|
881
d6a1854fdc1b
Make toplevel configure script work in a release tree rather than just
bartv
parents:
283
diff
changeset
|
11 dnl Copyright (C) 2002, 2003 Bart Veer |
|
283
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
12 dnl Copyright (C) 1998, 1999, 2000, 2001 Red Hat, Inc. |
|
208
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
13 dnl |
|
283
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
14 dnl This file is part of the eCos host tools. |
|
208
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
15 dnl |
|
283
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
16 dnl This program is free software; you can redistribute it and/or modify it |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
17 dnl under the terms of the GNU General Public License as published by the Free |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
18 dnl Software Foundation; either version 2 of the License, or (at your option) |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
19 dnl any later version. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
20 dnl |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
21 dnl This program is distributed in the hope that it will be useful, but WITHOUT |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
22 dnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
23 dnl FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
24 dnl more details. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
25 dnl |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
26 dnl You should have received a copy of the GNU General Public License along with |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
27 dnl this program; if not, write to the Free Software Foundation, Inc., |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
28 dnl 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
29 dnl ---------------------------------------------------------------------------- |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
30 dnl ####ECOSHOSTGPLCOPYRIGHTEND#### |
|
208
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
31 dnl ==================================================================== |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
32 dnl#####DESCRIPTIONBEGIN#### |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
33 dnl |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
34 dnl Author(s): bartv |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
35 dnl Contact(s): bartv |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
36 dnl Date: 1998/12/17 |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
37 dnl Version: 0.01 |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
38 dnl |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
39 dnl####DESCRIPTIONEND#### |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
40 dnl ==================================================================== |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
41 |
|
283
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
42 dnl eCos is a componentized architecture for deeply embedded systems. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
43 dnl It requires a very different configuration system from typical |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
44 dnl autoconfiscated software such as the various GNU packages. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
45 dnl |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
46 dnl The main eCos host-side software is autoconfiscated to some extent, |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
47 dnl in that the usual sequence of "configure;make;make install" will |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
48 dnl work under the right conditions. However it does not conform to |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
49 dnl the GNU coding standards in numerous ways, for example "make dist" |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
50 dnl will not work. The main eCos host-side software lives in the |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
51 dnl "host" subdirectory, and is built unconditionally. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
52 dnl |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
53 dnl The eCos target-side software lives in the "packages" subdirectory, |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
54 dnl and is organized in numerous subdirectories corresponding to different |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
55 dnl packages and potentially different versions of each package. In the |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
56 dnl master repository managed by CVS there will only be one version of |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
57 dnl each package, "current", which simplifies things somewhat. Other |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
58 dnl repositories will not be quite so straightforward and require a |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
59 dnl suitable administration tool. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
60 dnl |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
61 dnl The various eCos packages are not currently auto-confiscated. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
62 dnl In particular building eCos requires the use of eCos configuration |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
63 dnl technology, not autoconf - there is simply no good way of handling |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
64 dnl a system as highly configurable as eCos using a few command-line |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
65 dnl options passed to "configure". There would also be serious confusion |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
66 dnl between host and target, especially when e.g. cross-compiling the |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
67 dnl host tools. However a possible future enhancement |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
68 dnl would involve making eCos releases via configure and make, thus |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
69 dnl allowing for a release process that combines building the various |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
70 dnl host-side tools such as gcc with creating eCos epk's for the various |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
71 dnl packages. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
72 dnl |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
73 dnl A complication is that some of the eCos target-side packages also |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
74 dnl contain package-specific host-side support. For example the |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
75 dnl Linux synthetic target support uses special host-side software |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
76 dnl to provide I/O facilities: the architectural HAL package provdes |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
77 dnl generic support, the synthetic ethernet package extends this |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
78 dnl with ethernet support, and so on. Such package-specific host-side |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
79 dnl software does not belong in the main host subdirectory, that |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
80 dnl would make it very difficult to distribute new packages or |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
81 dnl new versions of a package. However keeping the code with the |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
82 dnl various packages makes building more complicated. |
|
208
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
83 dnl |
|
283
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
84 dnl 1) if the entire repository is managed by CVS or anoncvs, this |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
85 dnl configure script will search the packages tree for any packages |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
86 dnl that have host-side software that needs to be built - |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
87 dnl specifically, that have a file "configure" inside a "host" |
|
881
d6a1854fdc1b
Make toplevel configure script work in a release tree rather than just
bartv
parents:
283
diff
changeset
|
88 dnl subdirectory in a version of a package. |
|
283
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
89 dnl |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
90 dnl 2) if instead the repository contains additional packages |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
91 dnl installed as epk's and managed by an administration tool then |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
92 dnl it is the responsibility of that tool to let the users build |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
93 dnl and rebuild the host-side software as required, for whichever |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
94 dnl host platform or platforms are being used. In other words |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
95 dnl it is the responsibility of the admin tool to create a |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
96 dnl suitable build directory and run "configure; make; make install", |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
97 dnl usually as part of the installation process. Note that several |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
98 dnl versions of a package may be installed, and it is the |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
99 dnl responsibility of each package to take this into account |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
100 dnl (although the configure macros are aware of this to some extent, |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
101 dnl and will e.g. generate suitable install directory names). |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
102 dnl Also note that the top-level configure script will not pick |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
103 dnl up such packages because they will be versioned, i.e. the |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
104 dnl test for current/host/configure will fail because the |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
105 dnl version will not be "current". |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
106 dnl |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
107 dnl 3) as a special case it may be desirable to ship pre-built binaries |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
108 dnl of some of the package-specific software. It is not clear |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
109 dnl just what would be the best way of shipping these - putting |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
110 dnl them into the epk's would not be quite right because that would |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
111 dnl make the epk's host-specific rather than generic. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
112 dnl |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
113 dnl There is an unresolved problem with possible dependencies between |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
114 dnl packages, if e.g. the host-side of the synthetic ethernet package could |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
115 dnl only be built after the architectural synthetic target package. |
|
208
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
116 |
|
283
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
117 dnl Some of the eCos documentation is generic and lives in the "doc" |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
118 dnl subdirectory. Other eCos documentation is package-specific and lives |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
119 dnl in the appropriate package directory. At present there is no support |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
120 dnl for building the documentation via configure and make, but such |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
121 dnl support may be added in future. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
122 dnl |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
123 dnl There is a subdirectory acsupport containing various files such |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
124 dnl as config.guess and install.sh that are common. This also contains |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
125 dnl an acinclude.m4 file with various macros that are useful for |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
126 dnl eCos. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
127 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
128 dnl Generic initialization. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
129 AC_INIT(acsupport/config.guess) |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
130 AC_CONFIG_AUX_DIR(acsupport) |
|
208
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
131 AC_CANONICAL_HOST |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
132 AM_INIT_AUTOMAKE(eCos,2.0,0) |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
133 AM_MAINTAINER_MODE |
| 2528 | 134 |
| 135 dnl Detect attempts at cross-compilation. Usually this is the result | |
| 136 dnl of somebody failing to read the documentation or the README.host | |
| 137 dnl file. | |
| 138 if test "${target_alias}x" != "x" ; then | |
| 139 AC_MSG_ERROR(" | |
| 140 ================================================================ | |
| 141 You have specified a target ${target_alias}. | |
| 142 This configure script is for building the eCos host-side support | |
| 143 tools which are independent of the target architecture. It is not | |
| 144 used for building eCos itself. | |
| 145 | |
| 146 If your intention is to build eCos itself then you should first | |
| 147 read the relevant documentation starting with the User's Guide. | |
| 148 | |
| 149 If your intention is to rebuild the host-side support tools then | |
| 150 there is no need to specify --target. | |
| 151 | |
| 152 If your intention is to cross-compile the host-side support tools | |
| 153 then you should be using --host instead of --target. | |
| 154 ================================================================ | |
| 155 ") | |
| 156 fi | |
| 157 | |
| 158 dnl Make sure the source and build trees are kept separate. | |
|
283
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
159 ECOS_CHECK_BUILD_ne_SRC |
|
208
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
160 |
|
283
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
161 dnl Nothing actually gets built in this directory, so there should be no |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
162 dnl need to worry about compiler flags etc. Instead, the problem is |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
163 dnl figuring out what should actually get built. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
164 dnl |
|
881
d6a1854fdc1b
Make toplevel configure script work in a release tree rather than just
bartv
parents:
283
diff
changeset
|
165 dnl 1) the host subdirectory should always get built, if it exists. |
|
d6a1854fdc1b
Make toplevel configure script work in a release tree rather than just
bartv
parents:
283
diff
changeset
|
166 dnl With the 2.0 release system the directory gets moved to |
|
d6a1854fdc1b
Make toplevel configure script work in a release tree rather than just
bartv
parents:
283
diff
changeset
|
167 dnl tools/src |
|
d6a1854fdc1b
Make toplevel configure script work in a release tree rather than just
bartv
parents:
283
diff
changeset
|
168 |
|
d6a1854fdc1b
Make toplevel configure script work in a release tree rather than just
bartv
parents:
283
diff
changeset
|
169 if test -f "${srcdir}/host/configure" ; then |
| 2528 | 170 ecos_subdirs="host" |
|
881
d6a1854fdc1b
Make toplevel configure script work in a release tree rather than just
bartv
parents:
283
diff
changeset
|
171 elif test -f "${srcdir}/tools/src/configure" ; then |
| 2528 | 172 ecos_subdirs="tools/src" |
|
881
d6a1854fdc1b
Make toplevel configure script work in a release tree rather than just
bartv
parents:
283
diff
changeset
|
173 else |
| 2528 | 174 ecos_subdirs="" |
|
881
d6a1854fdc1b
Make toplevel configure script work in a release tree rather than just
bartv
parents:
283
diff
changeset
|
175 fi |
|
283
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
176 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
177 dnl 2) any package which has a configure script in a |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
178 dnl current/host subdirectory should also get built. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
179 dnl |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
180 dnl Searching the directory tree is currently done by shell globbing. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
181 dnl Invoking "find" with suitable arguments might be quicker, but |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
182 dnl less portable. On some hosts there may be problems with environmental |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
183 dnl limits if too many packages provide host-side software. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
184 dnl |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
185 dnl Currently there is no ordering of packages, so e.g. a device |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
186 dnl driver's host-side support cannot depend on some HAL package |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
187 dnl because the latter may not have been built and installed yet. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
188 dnl This is a good thing because packages are meant to be self-contained |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
189 dnl whenever possible. Interaction between packages is typically handled |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
190 dnl at the Tcl level at run-time, so there are no build-time complications. |
|
208
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
191 |
| 2528 | 192 AC_MSG_NOTICE([searching for configure scripts in eCos packages' |
| 193 host subdirectories. This operation can take a long time. | |
| 194 If running on Windows and the eCos repository is accessed | |
| 195 over a network then it may take some hours.]) | |
| 196 ecos_hostdirs="" | |
| 197 ecos_configure_scripts="${srcdir}/packages/*/*/host/configure" | |
| 198 ecos_configure_scripts="${ecos_configure_scripts} ${srcdir}/packages/*/*/*/host/configure" | |
| 199 ecos_configure_scripts="${ecos_configure_scripts} ${srcdir}/packages/*/*/*/*/host/configure" | |
| 200 ecos_configure_scripts="${ecos_configure_scripts} ${srcdir}/packages/*/*/*/*/*/host/configure" | |
| 201 ecos_configure_scripts="${ecos_configure_scripts} ${srcdir}/packages/*/*/*/*/*/*/host/configure" | |
| 202 for configure in ${ecos_configure_scripts}; do | |
|
283
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
203 if test -f ${configure}; then |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
204 dnl A configure script has been found in the source tree. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
205 dnl First turn it into a directory, then replace the absolute path |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
206 dnl with a relative one. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
207 hostdir=`dirname ${configure}` |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
208 hostdir=`echo ${hostdir} | sed -e "s:^${srcdir}/::"` |
| 2528 | 209 ecos_hostdirs="${ecos_hostdirs} ${hostdir}" |
|
283
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
210 fi |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
211 done |
| 2528 | 212 AC_MSG_NOTICE([found configure scripts in |
| 213 ${ecos_hostdirs}]) | |
| 214 ecos_subdirs="${ecos_subdirs} ${ecos_hostdirs}" | |
|
283
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
215 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
216 dnl Because the eCos directory layout does not conform to GNU conventions |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
217 dnl it is necessary to create various levels of intermediate directories. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
218 dnl This happens via config.status, prior to the recursion into the |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
219 dnl appropriate directories. |
| 2528 | 220 AC_OUTPUT_COMMANDS([${CONFIG_SHELL-/bin/sh} ${ac_top_srcdir}/acsupport/mkinstalldirs ${REQUIRED_DIRS}],REQUIRED_DIRS="${ecos_subdirs}") |
|
283
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
208
diff
changeset
|
221 |
| 2528 | 222 dnl This causes warnings with current versions of configure which |
| 223 dnl want literal arguments. Since this script deliberately searches | |
| 224 dnl for subdirectories there is no obvious way to eliminate those | |
| 225 dnl warnings. | |
| 226 AC_CONFIG_SUBDIRS(${ecos_subdirs}) | |
|
208
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff
changeset
|
227 AC_OUTPUT(Makefile) |
