annotate aclocal.m4 @ 442:cb9bc921600a

* ecos-tutorial.sgml: Expanded "i386 PC Hardware Setup" section to include information about FLOPPY and GRUB booting, and to add a section about debugging standalone applications.
author nickg
date Sun, 01 Dec 2002 15:52:57 +0000
parents f58bc1b2c2bc
children a2fb80f5315f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
283
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
1 dnl aclocal.m4 generated automatically by aclocal 1.4-p5
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
2
283
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
3 dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
4 dnl This file is free software; the Free Software Foundation
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
5 dnl gives unlimited permission to copy and/or distribute it,
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
6 dnl with or without modifications, as long as this notice is preserved.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
7
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
8 dnl This program is distributed in the hope that it will be useful,
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
9 dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
10 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
11 dnl PARTICULAR PURPOSE.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
12
283
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
13 dnl Process this file with aclocal to get an aclocal.m4 file. Then
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
14 dnl process that with autoconf.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
15 dnl ====================================================================
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
16 dnl
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
17 dnl acinclude.m4
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
18 dnl
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
19 dnl ====================================================================
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
20 dnl ####ECOSHOSTGPLCOPYRIGHTBEGIN####
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
21 dnl ----------------------------------------------------------------------------
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
22 dnl Copyright (C) 2002 Bart Veer
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
23 dnl
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
24 dnl This file is part of the eCos host tools.
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 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
27 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
28 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
29 dnl any later version.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
30 dnl
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
31 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
32 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
33 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
34 dnl more details.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
35 dnl
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
36 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
37 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
38 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
39 dnl
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
40 dnl ----------------------------------------------------------------------------
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
41 dnl ####ECOSHOSTGPLCOPYRIGHTEND####
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
42 dnl ====================================================================
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
43 dnl#####DESCRIPTIONBEGIN####
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
44 dnl
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
45 dnl Author(s): bartv
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
46 dnl Contact(s): bartv
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
47 dnl Date: 2002/08/03
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
48 dnl Version: 0.01
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
49 dnl
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
50 dnl####DESCRIPTIONEND####
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
51 dnl ====================================================================
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
52
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
53 dnl Access shared macros.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
54 dnl AM_CONDITIONAL needs to be mentioned here or else aclocal does not
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
55 dnl incorporate the macro into aclocal.m4
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
56 sinclude(acsupport/acinclude.m4)
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
57
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
58 # Define a conditional.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
59
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
60 AC_DEFUN([AM_CONDITIONAL],
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
61 [AC_SUBST($1_TRUE)
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
62 AC_SUBST($1_FALSE)
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
63 if $2; then
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
64 $1_TRUE=
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
65 $1_FALSE='#'
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
66 else
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
67 $1_TRUE='#'
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
68 $1_FALSE=
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
69 fi])
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
70
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
71 # Do all the work for Automake. This macro actually does too much --
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
72 # some checks are only needed if your package does certain things.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
73 # But this isn't really a big deal.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
74
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
75 # serial 1
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
76
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
77 dnl Usage:
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
78 dnl AM_INIT_AUTOMAKE(package,version, [no-define])
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
79
283
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
80 AC_DEFUN([AM_INIT_AUTOMAKE],
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
81 [AC_REQUIRE([AC_PROG_INSTALL])
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
82 PACKAGE=[$1]
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
83 AC_SUBST(PACKAGE)
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
84 VERSION=[$2]
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
85 AC_SUBST(VERSION)
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
86 dnl test to see if srcdir already configured
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
87 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
88 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
89 fi
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
90 ifelse([$3],,
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
91 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
92 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
93 AC_REQUIRE([AM_SANITY_CHECK])
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
94 AC_REQUIRE([AC_ARG_PROGRAM])
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
95 dnl FIXME This is truly gross.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
96 missing_dir=`cd $ac_aux_dir && pwd`
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
97 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
98 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
99 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
100 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
101 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
102 AC_REQUIRE([AC_PROG_MAKE_SET])])
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
103
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
104 #
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
105 # Check to make sure that the build environment is sane.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
106 #
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
107
283
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
108 AC_DEFUN([AM_SANITY_CHECK],
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
109 [AC_MSG_CHECKING([whether build environment is sane])
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
110 # Just in case
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
111 sleep 1
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
112 echo timestamp > conftestfile
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
113 # Do `set' in a subshell so we don't clobber the current shell's
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
114 # arguments. Must try -L first in case configure is actually a
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
115 # symlink; some systems play weird games with the mod time of symlinks
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
116 # (eg FreeBSD returns the mod time of the symlink's containing
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
117 # directory).
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
118 if (
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
119 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
120 if test "[$]*" = "X"; then
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
121 # -L didn't work.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
122 set X `ls -t $srcdir/configure conftestfile`
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
123 fi
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
124 if test "[$]*" != "X $srcdir/configure conftestfile" \
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
125 && test "[$]*" != "X conftestfile $srcdir/configure"; then
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
126
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
127 # If neither matched, then we have a broken ls. This can happen
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
128 # if, for instance, CONFIG_SHELL is bash and it inherits a
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
129 # broken ls alias from the environment. This has actually
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
130 # happened. Such a system could not be considered "sane".
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
131 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
132 alias in your environment])
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
133 fi
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
134
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
135 test "[$]2" = conftestfile
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
136 )
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
137 then
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
138 # Ok.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
139 :
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
140 else
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
141 AC_MSG_ERROR([newly created file is older than distributed files!
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
142 Check your system clock])
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
143 fi
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
144 rm -f conftest*
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
145 AC_MSG_RESULT(yes)])
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
146
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
147 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
148 dnl The program must properly implement --version.
283
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
149 AC_DEFUN([AM_MISSING_PROG],
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
150 [AC_MSG_CHECKING(for working $2)
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
151 # Run test in a subshell; some versions of sh will print an error if
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
152 # an executable is not found, even if stderr is redirected.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
153 # Redirect stdin to placate older versions of autoconf. Sigh.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
154 if ($2 --version) < /dev/null > /dev/null 2>&1; then
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
155 $1=$2
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
156 AC_MSG_RESULT(found)
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
157 else
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
158 $1="$3/missing $2"
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
159 AC_MSG_RESULT(missing)
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
160 fi
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
161 AC_SUBST($1)])
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
162
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
163 # Add --enable-maintainer-mode option to configure.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
164 # From Jim Meyering
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
165
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
166 # serial 1
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
167
283
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
168 AC_DEFUN([AM_MAINTAINER_MODE],
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
169 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
170 dnl maintainer-mode is disabled by default
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
171 AC_ARG_ENABLE(maintainer-mode,
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
172 [ --enable-maintainer-mode enable make rules and dependencies not useful
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
173 (and sometimes confusing) to the casual installer],
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
174 USE_MAINTAINER_MODE=$enableval,
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
175 USE_MAINTAINER_MODE=no)
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
176 AC_MSG_RESULT($USE_MAINTAINER_MODE)
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
177 AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
178 MAINT=$MAINTAINER_MODE_TRUE
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
179 AC_SUBST(MAINT)dnl
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
180 ]
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
181 )
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
182