OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [lib/] [libbsp/] [or32/] [aclocal.m4] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
# aclocal.m4 generated automatically by aclocal 1.6.2 -*- Autoconf -*-
2
 
3
# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
4
# Free Software Foundation, Inc.
5
# This file is free software; the Free Software Foundation
6
# gives unlimited permission to copy and/or distribute it,
7
# with or without modifications, as long as this notice is preserved.
8
 
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
# PARTICULAR PURPOSE.
13
 
14
# RTEMS_CHECK_BSPDIR(RTEMS_BSP)
15
AC_DEFUN([RTEMS_CHECK_BSPDIR],
16
[
17
  RTEMS_BSP_ALIAS(ifelse([$1],,[${RTEMS_BSP}],[$1]),bspdir)
18
  case "$bspdir" in
19
  orp )
20
    AC_CONFIG_SUBDIRS([orp]);;
21
  *)
22
    AC_MSG_ERROR([Invalid BSP]);;
23
  esac
24
])
25
 
26
dnl
27
dnl  bsp-alias.m4,v 1.15 2001/11/21 18:36:51 joel Exp
28
dnl
29
 
30
dnl _RTEMS_BSP_ALIAS(BSP_ALIAS,RTEMS_BSP_FAMILY)
31
dnl Internal subroutine to RTEMS_BSP_ALIAS
32
AC_DEFUN(_RTEMS_BSP_ALIAS,
33
[# account for "aliased" bsps which share source code
34
  case $1 in
35
    simcpu32)     $2=sim68000         ;; # BSVC CPU32 variant
36
    c3xsim)       $2=c4xsim           ;; # TI C3x Simulator in gdb
37
    mcp750)       $2=motorola_powerpc ;; # Motorola PPC board variant
38
    mvme2307)     $2=motorola_powerpc ;; # Motorola PPC board variant
39
    mvme162lx)    $2=mvme162          ;; # m68k - mvme162 board variant
40
    gen68360_040) $2=gen68360         ;; # m68k - 68360 in companion mode
41
    p4600)        $2=p4000            ;; # mips64orion - p4000 board w/IDT 4600
42
    p4650)        $2=p4000            ;; # mips64orion - p4000 board w/IDT 4650
43
    mbx8*)        $2=mbx8xx           ;; # MBX821/MBX860 board
44
    pc386dx)      $2=pc386            ;; # i386 - PC w/o FPU
45
    pc486)        $2=pc386            ;; # i386 - PC with i486DX
46
    pc586)        $2=pc386            ;; # i386 - PC with Pentium
47
    pc686)        $2=pc386            ;; # i386 - PC with PentiumPro
48
    pck6)         $2=pc386            ;; # i386 - PC with K6
49
    bare*)        $2=bare             ;; # EXP: bare-aliases
50
    erc32nfp)     $2=erc32            ;; # erc32 without fpu
51
    leon1)        $2=leon             ;; # leon without fpu
52
    leon2)        $2=leon             ;; # leon with fpu
53
    simsh7032)    $2=shsim            ;; # SH7032 simulator
54
    simsh7045)    $2=shsim            ;; # SH7045 simulator
55
    *)            $2=$1;;
56
  esac]
57
)
58
 
59
dnl RTEMS_BSP_ALIAS(BSP_ALIAS,RTEMS_BSP_FAMILY)
60
dnl convert a bsp alias $1 into its bsp directory RTEMS_BSP_FAMILY
61
AC_DEFUN(RTEMS_BSP_ALIAS,
62
[_RTEMS_BSP_ALIAS(m4_if([$1],,[$RTEMS_BSP],[$1]),
63
  m4_if([$2],,[RTEMS_BSP_FAMILY],[$2]))]
64
)
65
 
66
dnl rtems-top.m4,v 1.14 2002/03/28 13:53:19 joel Exp
67
 
68
dnl
69
dnl RTEMS_TOP($1)
70
dnl
71
dnl $1 .. relative path from this configure.in to the toplevel configure.in
72
dnl
73
AC_DEFUN(RTEMS_TOP,
74
[dnl
75
AC_REQUIRE([RTEMS_VERSIONING])
76
AC_CHECK_PROGS(MAKE, gmake make)
77
AC_BEFORE([$0], [AC_CONFIG_AUX_DIR])dnl
78
AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl
79
 
80
AC_PREFIX_DEFAULT([/opt/rtems])
81
 
82
ENDIF=endif
83
AC_SUBST(ENDIF)
84
 
85
RTEMS_TOPdir="$1";
86
AC_SUBST(RTEMS_TOPdir)
87
 
88
test -n "$with_target_subdir" || with_target_subdir="."
89
 
90
if test "$with_target_subdir" = "." ; then
91
# Native
92
PROJECT_TOPdir=${RTEMS_TOPdir}/'$(top_builddir)'
93
else
94
# Cross
95
dots=`echo $with_target_subdir|\
96
sed -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'`
97
PROJECT_TOPdir=${dots}${RTEMS_TOPdir}/'$(top_builddir)'
98
fi
99
AC_SUBST(PROJECT_TOPdir)
100
 
101
if test "$with_target_subdir" = "." ; then
102
# Native
103
PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)"
104
else
105
# Cross
106
PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)"
107
fi
108
AC_SUBST(PROJECT_ROOT)
109
 
110
AC_MSG_CHECKING([for RTEMS Version])
111
AS_IF([test -r "${srcdir}/${RTEMS_TOPdir}/aclocal/version.m4"],
112
[],
113
[AC_MSG_ERROR([Unable to find ${RTEMS_TOPdir}/aclocal/version.m4])])
114
AC_MSG_RESULT([_RTEMS_VERSION])
115
])dnl
116
 
117
AC_DEFUN([RTEMS_VERSIONING],
118
m4_define([_RTEMS_VERSION],[ss-20020807]))
119
 
120
# Do all the work for Automake.                            -*- Autoconf -*-
121
 
122
# This macro actually does too much some checks are only needed if
123
# your package does certain things.  But this isn't really a big deal.
124
 
125
# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
126
# Free Software Foundation, Inc.
127
 
128
# This program is free software; you can redistribute it and/or modify
129
# it under the terms of the GNU General Public License as published by
130
# the Free Software Foundation; either version 2, or (at your option)
131
# any later version.
132
 
133
# This program is distributed in the hope that it will be useful,
134
# but WITHOUT ANY WARRANTY; without even the implied warranty of
135
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
136
# GNU General Public License for more details.
137
 
138
# You should have received a copy of the GNU General Public License
139
# along with this program; if not, write to the Free Software
140
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
141
# 02111-1307, USA.
142
 
143
# serial 8
144
 
145
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
146
# written in clear, in which case automake, when reading aclocal.m4,
147
# will think it sees a *use*, and therefore will trigger all it's
148
# C support machinery.  Also note that it means that autoscan, seeing
149
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
150
 
151
 
152
AC_PREREQ([2.52])
153
 
154
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
155
# the ones we care about.
156
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
157
 
158
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
159
# AM_INIT_AUTOMAKE([OPTIONS])
160
# -----------------------------------------------
161
# The call with PACKAGE and VERSION arguments is the old style
162
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
163
# and VERSION should now be passed to AC_INIT and removed from
164
# the call to AM_INIT_AUTOMAKE.
165
# We support both call styles for the transition.  After
166
# the next Automake release, Autoconf can make the AC_INIT
167
# arguments mandatory, and then we can depend on a new Autoconf
168
# release and drop the old call support.
169
AC_DEFUN([AM_INIT_AUTOMAKE],
170
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
171
 AC_REQUIRE([AC_PROG_INSTALL])dnl
172
# test to see if srcdir already configured
173
if test "`cd $srcdir && pwd`" != "`pwd`" &&
174
   test -f $srcdir/config.status; then
175
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
176
fi
177
 
178
# Define the identity of the package.
179
dnl Distinguish between old-style and new-style calls.
180
m4_ifval([$2],
181
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
182
 AC_SUBST([PACKAGE], [$1])dnl
183
 AC_SUBST([VERSION], [$2])],
184
[_AM_SET_OPTIONS([$1])dnl
185
 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
186
 AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
187
 
188
_AM_IF_OPTION([no-define],,
189
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
190
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
191
 
192
# Some tools Automake needs.
193
AC_REQUIRE([AM_SANITY_CHECK])dnl
194
AC_REQUIRE([AC_ARG_PROGRAM])dnl
195
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
196
AM_MISSING_PROG(AUTOCONF, autoconf)
197
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
198
AM_MISSING_PROG(AUTOHEADER, autoheader)
199
AM_MISSING_PROG(MAKEINFO, makeinfo)
200
AM_MISSING_PROG(AMTAR, tar)
201
AM_PROG_INSTALL_SH
202
AM_PROG_INSTALL_STRIP
203
# We need awk for the "check" target.  The system "awk" is bad on
204
# some platforms.
205
AC_REQUIRE([AC_PROG_AWK])dnl
206
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
207
 
208
_AM_IF_OPTION([no-dependencies],,
209
[AC_PROVIDE_IFELSE([AC_PROG_][CC],
210
                  [_AM_DEPENDENCIES(CC)],
211
                  [define([AC_PROG_][CC],
212
                          defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
213
AC_PROVIDE_IFELSE([AC_PROG_][CXX],
214
                  [_AM_DEPENDENCIES(CXX)],
215
                  [define([AC_PROG_][CXX],
216
                          defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
217
])
218
])
219
 
220
# Copyright 2002  Free Software Foundation, Inc.
221
 
222
# This program is free software; you can redistribute it and/or modify
223
# it under the terms of the GNU General Public License as published by
224
# the Free Software Foundation; either version 2, or (at your option)
225
# any later version.
226
 
227
# This program is distributed in the hope that it will be useful,
228
# but WITHOUT ANY WARRANTY; without even the implied warranty of
229
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
230
# GNU General Public License for more details.
231
 
232
# You should have received a copy of the GNU General Public License
233
# along with this program; if not, write to the Free Software
234
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
235
 
236
# AM_AUTOMAKE_VERSION(VERSION)
237
# ----------------------------
238
# Automake X.Y traces this macro to ensure aclocal.m4 has been
239
# generated from the m4 files accompanying Automake X.Y.
240
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6"])
241
 
242
# AM_SET_CURRENT_AUTOMAKE_VERSION
243
# -------------------------------
244
# Call AM_AUTOMAKE_VERSION so it can be traced.
245
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
246
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
247
         [AM_AUTOMAKE_VERSION([1.6.2])])
248
 
249
# Helper functions for option handling.                    -*- Autoconf -*-
250
 
251
# Copyright 2001, 2002  Free Software Foundation, Inc.
252
 
253
# This program is free software; you can redistribute it and/or modify
254
# it under the terms of the GNU General Public License as published by
255
# the Free Software Foundation; either version 2, or (at your option)
256
# any later version.
257
 
258
# This program is distributed in the hope that it will be useful,
259
# but WITHOUT ANY WARRANTY; without even the implied warranty of
260
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
261
# GNU General Public License for more details.
262
 
263
# You should have received a copy of the GNU General Public License
264
# along with this program; if not, write to the Free Software
265
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
266
# 02111-1307, USA.
267
 
268
# serial 2
269
 
270
# _AM_MANGLE_OPTION(NAME)
271
# -----------------------
272
AC_DEFUN([_AM_MANGLE_OPTION],
273
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
274
 
275
# _AM_SET_OPTION(NAME)
276
# ------------------------------
277
# Set option NAME.  Presently that only means defining a flag for this option.
278
AC_DEFUN([_AM_SET_OPTION],
279
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
280
 
281
# _AM_SET_OPTIONS(OPTIONS)
282
# ----------------------------------
283
# OPTIONS is a space-separated list of Automake options.
284
AC_DEFUN([_AM_SET_OPTIONS],
285
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
286
 
287
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
288
# -------------------------------------------
289
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
290
AC_DEFUN([_AM_IF_OPTION],
291
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
292
 
293
#
294
# Check to make sure that the build environment is sane.
295
#
296
 
297
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
298
 
299
# This program is free software; you can redistribute it and/or modify
300
# it under the terms of the GNU General Public License as published by
301
# the Free Software Foundation; either version 2, or (at your option)
302
# any later version.
303
 
304
# This program is distributed in the hope that it will be useful,
305
# but WITHOUT ANY WARRANTY; without even the implied warranty of
306
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
307
# GNU General Public License for more details.
308
 
309
# You should have received a copy of the GNU General Public License
310
# along with this program; if not, write to the Free Software
311
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
312
# 02111-1307, USA.
313
 
314
# serial 3
315
 
316
# AM_SANITY_CHECK
317
# ---------------
318
AC_DEFUN([AM_SANITY_CHECK],
319
[AC_MSG_CHECKING([whether build environment is sane])
320
# Just in case
321
sleep 1
322
echo timestamp > conftest.file
323
# Do `set' in a subshell so we don't clobber the current shell's
324
# arguments.  Must try -L first in case configure is actually a
325
# symlink; some systems play weird games with the mod time of symlinks
326
# (eg FreeBSD returns the mod time of the symlink's containing
327
# directory).
328
if (
329
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
330
   if test "$[*]" = "X"; then
331
      # -L didn't work.
332
      set X `ls -t $srcdir/configure conftest.file`
333
   fi
334
   rm -f conftest.file
335
   if test "$[*]" != "X $srcdir/configure conftest.file" \
336
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
337
 
338
      # If neither matched, then we have a broken ls.  This can happen
339
      # if, for instance, CONFIG_SHELL is bash and it inherits a
340
      # broken ls alias from the environment.  This has actually
341
      # happened.  Such a system could not be considered "sane".
342
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
343
alias in your environment])
344
   fi
345
 
346
   test "$[2]" = conftest.file
347
   )
348
then
349
   # Ok.
350
   :
351
else
352
   AC_MSG_ERROR([newly created file is older than distributed files!
353
Check your system clock])
354
fi
355
AC_MSG_RESULT(yes)])
356
 
357
#  -*- Autoconf -*-
358
 
359
 
360
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
361
 
362
# This program is free software; you can redistribute it and/or modify
363
# it under the terms of the GNU General Public License as published by
364
# the Free Software Foundation; either version 2, or (at your option)
365
# any later version.
366
 
367
# This program is distributed in the hope that it will be useful,
368
# but WITHOUT ANY WARRANTY; without even the implied warranty of
369
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
370
# GNU General Public License for more details.
371
 
372
# You should have received a copy of the GNU General Public License
373
# along with this program; if not, write to the Free Software
374
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
375
# 02111-1307, USA.
376
 
377
# serial 3
378
 
379
# AM_MISSING_PROG(NAME, PROGRAM)
380
# ------------------------------
381
AC_DEFUN([AM_MISSING_PROG],
382
[AC_REQUIRE([AM_MISSING_HAS_RUN])
383
$1=${$1-"${am_missing_run}$2"}
384
AC_SUBST($1)])
385
 
386
 
387
# AM_MISSING_HAS_RUN
388
# ------------------
389
# Define MISSING if not defined so far and test if it supports --run.
390
# If it does, set am_missing_run to use it, otherwise, to nothing.
391
AC_DEFUN([AM_MISSING_HAS_RUN],
392
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
393
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
394
# Use eval to expand $SHELL
395
if eval "$MISSING --run true"; then
396
  am_missing_run="$MISSING --run "
397
else
398
  am_missing_run=
399
  AC_MSG_WARN([`missing' script is too old or missing])
400
fi
401
])
402
 
403
# AM_AUX_DIR_EXPAND
404
 
405
# Copyright 2001 Free Software Foundation, Inc.
406
 
407
# This program is free software; you can redistribute it and/or modify
408
# it under the terms of the GNU General Public License as published by
409
# the Free Software Foundation; either version 2, or (at your option)
410
# any later version.
411
 
412
# This program is distributed in the hope that it will be useful,
413
# but WITHOUT ANY WARRANTY; without even the implied warranty of
414
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
415
# GNU General Public License for more details.
416
 
417
# You should have received a copy of the GNU General Public License
418
# along with this program; if not, write to the Free Software
419
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
420
# 02111-1307, USA.
421
 
422
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
423
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
424
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
425
#
426
# Of course, Automake must honor this variable whenever it calls a
427
# tool from the auxiliary directory.  The problem is that $srcdir (and
428
# therefore $ac_aux_dir as well) can be either absolute or relative,
429
# depending on how configure is run.  This is pretty annoying, since
430
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
431
# source directory, any form will work fine, but in subdirectories a
432
# relative path needs to be adjusted first.
433
#
434
# $ac_aux_dir/missing
435
#    fails when called from a subdirectory if $ac_aux_dir is relative
436
# $top_srcdir/$ac_aux_dir/missing
437
#    fails if $ac_aux_dir is absolute,
438
#    fails when called from a subdirectory in a VPATH build with
439
#          a relative $ac_aux_dir
440
#
441
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
442
# are both prefixed by $srcdir.  In an in-source build this is usually
443
# harmless because $srcdir is `.', but things will broke when you
444
# start a VPATH build or use an absolute $srcdir.
445
#
446
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
447
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
448
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
449
# and then we would define $MISSING as
450
#   MISSING="\${SHELL} $am_aux_dir/missing"
451
# This will work as long as MISSING is not called from configure, because
452
# unfortunately $(top_srcdir) has no meaning in configure.
453
# However there are other variables, like CC, which are often used in
454
# configure, and could therefore not use this "fixed" $ac_aux_dir.
455
#
456
# Another solution, used here, is to always expand $ac_aux_dir to an
457
# absolute PATH.  The drawback is that using absolute paths prevent a
458
# configured tree to be moved without reconfiguration.
459
 
460
# Rely on autoconf to set up CDPATH properly.
461
AC_PREREQ([2.50])
462
 
463
AC_DEFUN([AM_AUX_DIR_EXPAND], [
464
# expand $ac_aux_dir to an absolute path
465
am_aux_dir=`cd $ac_aux_dir && pwd`
466
])
467
 
468
# AM_PROG_INSTALL_SH
469
# ------------------
470
# Define $install_sh.
471
 
472
# Copyright 2001 Free Software Foundation, Inc.
473
 
474
# This program is free software; you can redistribute it and/or modify
475
# it under the terms of the GNU General Public License as published by
476
# the Free Software Foundation; either version 2, or (at your option)
477
# any later version.
478
 
479
# This program is distributed in the hope that it will be useful,
480
# but WITHOUT ANY WARRANTY; without even the implied warranty of
481
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
482
# GNU General Public License for more details.
483
 
484
# You should have received a copy of the GNU General Public License
485
# along with this program; if not, write to the Free Software
486
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
487
# 02111-1307, USA.
488
 
489
AC_DEFUN([AM_PROG_INSTALL_SH],
490
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
491
install_sh=${install_sh-"$am_aux_dir/install-sh"}
492
AC_SUBST(install_sh)])
493
 
494
# AM_PROG_INSTALL_STRIP
495
 
496
# Copyright 2001 Free Software Foundation, Inc.
497
 
498
# This program is free software; you can redistribute it and/or modify
499
# it under the terms of the GNU General Public License as published by
500
# the Free Software Foundation; either version 2, or (at your option)
501
# any later version.
502
 
503
# This program is distributed in the hope that it will be useful,
504
# but WITHOUT ANY WARRANTY; without even the implied warranty of
505
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
506
# GNU General Public License for more details.
507
 
508
# You should have received a copy of the GNU General Public License
509
# along with this program; if not, write to the Free Software
510
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
511
# 02111-1307, USA.
512
 
513
# One issue with vendor `install' (even GNU) is that you can't
514
# specify the program used to strip binaries.  This is especially
515
# annoying in cross-compiling environments, where the build's strip
516
# is unlikely to handle the host's binaries.
517
# Fortunately install-sh will honor a STRIPPROG variable, so we
518
# always use install-sh in `make install-strip', and initialize
519
# STRIPPROG with the value of the STRIP variable (set by the user).
520
AC_DEFUN([AM_PROG_INSTALL_STRIP],
521
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
522
# Installed binaries are usually stripped using `strip' when the user
523
# run `make install-strip'.  However `strip' might not be the right
524
# tool to use in cross-compilation environments, therefore Automake
525
# will honor the `STRIP' environment variable to overrule this program.
526
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
527
if test "$cross_compiling" != no; then
528
  AC_CHECK_TOOL([STRIP], [strip], :)
529
fi
530
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
531
AC_SUBST([INSTALL_STRIP_PROGRAM])])
532
 
533
# serial 4                                              -*- Autoconf -*-
534
 
535
# Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
536
 
537
# This program is free software; you can redistribute it and/or modify
538
# it under the terms of the GNU General Public License as published by
539
# the Free Software Foundation; either version 2, or (at your option)
540
# any later version.
541
 
542
# This program is distributed in the hope that it will be useful,
543
# but WITHOUT ANY WARRANTY; without even the implied warranty of
544
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
545
# GNU General Public License for more details.
546
 
547
# You should have received a copy of the GNU General Public License
548
# along with this program; if not, write to the Free Software
549
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
550
# 02111-1307, USA.
551
 
552
 
553
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
554
# written in clear, in which case automake, when reading aclocal.m4,
555
# will think it sees a *use*, and therefore will trigger all it's
556
# C support machinery.  Also note that it means that autoscan, seeing
557
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
558
 
559
 
560
 
561
# _AM_DEPENDENCIES(NAME)
562
# ----------------------
563
# See how the compiler implements dependency checking.
564
# NAME is "CC", "CXX", "GCJ", or "OBJC".
565
# We try a few techniques and use that to set a single cache variable.
566
#
567
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
568
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
569
# dependency, and given that the user is not expected to run this macro,
570
# just rely on AC_PROG_CC.
571
AC_DEFUN([_AM_DEPENDENCIES],
572
[AC_REQUIRE([AM_SET_DEPDIR])dnl
573
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
574
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
575
AC_REQUIRE([AM_DEP_TRACK])dnl
576
 
577
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
578
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
579
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
580
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
581
                   [depcc="$$1"   am_compiler_list=])
582
 
583
AC_CACHE_CHECK([dependency style of $depcc],
584
               [am_cv_$1_dependencies_compiler_type],
585
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
586
  # We make a subdir and do the tests there.  Otherwise we can end up
587
  # making bogus files that we don't know about and never remove.  For
588
  # instance it was reported that on HP-UX the gcc test will end up
589
  # making a dummy file named `D' -- because `-MD' means `put the output
590
  # in D'.
591
  mkdir conftest.dir
592
  # Copy depcomp to subdir because otherwise we won't find it if we're
593
  # using a relative directory.
594
  cp "$am_depcomp" conftest.dir
595
  cd conftest.dir
596
 
597
  am_cv_$1_dependencies_compiler_type=none
598
  if test "$am_compiler_list" = ""; then
599
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
600
  fi
601
  for depmode in $am_compiler_list; do
602
    # We need to recreate these files for each test, as the compiler may
603
    # overwrite some of them when testing with obscure command lines.
604
    # This happens at least with the AIX C compiler.
605
    echo '#include "conftest.h"' > conftest.c
606
    echo 'int i;' > conftest.h
607
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
608
 
609
    case $depmode in
610
    nosideeffect)
611
      # after this tag, mechanisms are not by side-effect, so they'll
612
      # only be used when explicitly requested
613
      if test "x$enable_dependency_tracking" = xyes; then
614
        continue
615
      else
616
        break
617
      fi
618
      ;;
619
    none) break ;;
620
    esac
621
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
622
    # mode.  It turns out that the SunPro C++ compiler does not properly
623
    # handle `-M -o', and we need to detect this.
624
    if depmode=$depmode \
625
       source=conftest.c object=conftest.o \
626
       depfile=conftest.Po tmpdepfile=conftest.TPo \
627
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
628
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
629
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
630
      am_cv_$1_dependencies_compiler_type=$depmode
631
      break
632
    fi
633
  done
634
 
635
  cd ..
636
  rm -rf conftest.dir
637
else
638
  am_cv_$1_dependencies_compiler_type=none
639
fi
640
])
641
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
642
])
643
 
644
 
645
# AM_SET_DEPDIR
646
# -------------
647
# Choose a directory name for dependency files.
648
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
649
AC_DEFUN([AM_SET_DEPDIR],
650
[rm -f .deps 2>/dev/null
651
mkdir .deps 2>/dev/null
652
if test -d .deps; then
653
  DEPDIR=.deps
654
else
655
  # MS-DOS does not allow filenames that begin with a dot.
656
  DEPDIR=_deps
657
fi
658
rmdir .deps 2>/dev/null
659
AC_SUBST([DEPDIR])
660
])
661
 
662
 
663
# AM_DEP_TRACK
664
# ------------
665
AC_DEFUN([AM_DEP_TRACK],
666
[AC_ARG_ENABLE(dependency-tracking,
667
[  --disable-dependency-tracking Speeds up one-time builds
668
  --enable-dependency-tracking  Do not reject slow dependency extractors])
669
if test "x$enable_dependency_tracking" != xno; then
670
  am_depcomp="$ac_aux_dir/depcomp"
671
  AMDEPBACKSLASH='\'
672
fi
673
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
674
AC_SUBST([AMDEPBACKSLASH])
675
])
676
 
677
# Generate code to set up dependency tracking.   -*- Autoconf -*-
678
 
679
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
680
 
681
# This program is free software; you can redistribute it and/or modify
682
# it under the terms of the GNU General Public License as published by
683
# the Free Software Foundation; either version 2, or (at your option)
684
# any later version.
685
 
686
# This program is distributed in the hope that it will be useful,
687
# but WITHOUT ANY WARRANTY; without even the implied warranty of
688
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
689
# GNU General Public License for more details.
690
 
691
# You should have received a copy of the GNU General Public License
692
# along with this program; if not, write to the Free Software
693
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
694
# 02111-1307, USA.
695
 
696
#serial 2
697
 
698
# _AM_OUTPUT_DEPENDENCY_COMMANDS
699
# ------------------------------
700
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
701
[for mf in $CONFIG_FILES; do
702
  # Strip MF so we end up with the name of the file.
703
  mf=`echo "$mf" | sed -e 's/:.*$//'`
704
  # Check whether this is an Automake generated Makefile or not.
705
  # We used to match only the files named `Makefile.in', but
706
  # some people rename them; so instead we look at the file content.
707
  # Grep'ing the first line is not enough: some people post-process
708
  # each Makefile.in and add a new line on top of each file to say so.
709
  # So let's grep whole file.
710
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
711
    dirpart=`AS_DIRNAME("$mf")`
712
  else
713
    continue
714
  fi
715
  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
716
  # Extract the definition of DEP_FILES from the Makefile without
717
  # running `make'.
718
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
719
  test -z "$DEPDIR" && continue
720
  # When using ansi2knr, U may be empty or an underscore; expand it
721
  U=`sed -n -e '/^U = / s///p' < "$mf"`
722
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
723
  # We invoke sed twice because it is the simplest approach to
724
  # changing $(DEPDIR) to its actual value in the expansion.
725
  for file in `sed -n -e '
726
    /^DEP_FILES = .*\\\\$/ {
727
      s/^DEP_FILES = //
728
      :loop
729
        s/\\\\$//
730
        p
731
        n
732
        /\\\\$/ b loop
733
      p
734
    }
735
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
736
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
737
    # Make sure the directory exists.
738
    test -f "$dirpart/$file" && continue
739
    fdir=`AS_DIRNAME(["$file"])`
740
    AS_MKDIR_P([$dirpart/$fdir])
741
    # echo "creating $dirpart/$file"
742
    echo '# dummy' > "$dirpart/$file"
743
  done
744
done
745
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
746
 
747
 
748
# AM_OUTPUT_DEPENDENCY_COMMANDS
749
# -----------------------------
750
# This macro should only be invoked once -- use via AC_REQUIRE.
751
#
752
# This code is only required when automatic dependency tracking
753
# is enabled.  FIXME.  This creates each `.P' file that we will
754
# need in order to bootstrap the dependency handling code.
755
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
756
[AC_CONFIG_COMMANDS([depfiles],
757
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
758
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
759
])
760
 
761
# Copyright 2001 Free Software Foundation, Inc.             -*- Autoconf -*-
762
 
763
# This program is free software; you can redistribute it and/or modify
764
# it under the terms of the GNU General Public License as published by
765
# the Free Software Foundation; either version 2, or (at your option)
766
# any later version.
767
 
768
# This program is distributed in the hope that it will be useful,
769
# but WITHOUT ANY WARRANTY; without even the implied warranty of
770
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
771
# GNU General Public License for more details.
772
 
773
# You should have received a copy of the GNU General Public License
774
# along with this program; if not, write to the Free Software
775
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
776
# 02111-1307, USA.
777
 
778
# serial 2
779
 
780
# AM_MAKE_INCLUDE()
781
# -----------------
782
# Check to see how make treats includes.
783
AC_DEFUN([AM_MAKE_INCLUDE],
784
[am_make=${MAKE-make}
785
cat > confinc << 'END'
786
doit:
787
        @echo done
788
END
789
# If we don't find an include directive, just comment out the code.
790
AC_MSG_CHECKING([for style of include used by $am_make])
791
am__include="#"
792
am__quote=
793
_am_result=none
794
# First try GNU make style include.
795
echo "include confinc" > confmf
796
# We grep out `Entering directory' and `Leaving directory'
797
# messages which can occur if `w' ends up in MAKEFLAGS.
798
# In particular we don't look at `^make:' because GNU make might
799
# be invoked under some other name (usually "gmake"), in which
800
# case it prints its new name instead of `make'.
801
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
802
   am__include=include
803
   am__quote=
804
   _am_result=GNU
805
fi
806
# Now try BSD make style include.
807
if test "$am__include" = "#"; then
808
   echo '.include "confinc"' > confmf
809
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
810
      am__include=.include
811
      am__quote="\""
812
      _am_result=BSD
813
   fi
814
fi
815
AC_SUBST(am__include)
816
AC_SUBST(am__quote)
817
AC_MSG_RESULT($_am_result)
818
rm -f confinc confmf
819
])
820
 
821
# AM_CONDITIONAL                                              -*- Autoconf -*-
822
 
823
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
824
 
825
# This program is free software; you can redistribute it and/or modify
826
# it under the terms of the GNU General Public License as published by
827
# the Free Software Foundation; either version 2, or (at your option)
828
# any later version.
829
 
830
# This program is distributed in the hope that it will be useful,
831
# but WITHOUT ANY WARRANTY; without even the implied warranty of
832
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
833
# GNU General Public License for more details.
834
 
835
# You should have received a copy of the GNU General Public License
836
# along with this program; if not, write to the Free Software
837
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
838
# 02111-1307, USA.
839
 
840
# serial 5
841
 
842
AC_PREREQ(2.52)
843
 
844
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
845
# -------------------------------------
846
# Define a conditional.
847
AC_DEFUN([AM_CONDITIONAL],
848
[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
849
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
850
AC_SUBST([$1_TRUE])
851
AC_SUBST([$1_FALSE])
852
if $2; then
853
  $1_TRUE=
854
  $1_FALSE='#'
855
else
856
  $1_TRUE='#'
857
  $1_FALSE=
858
fi
859
AC_CONFIG_COMMANDS_PRE(
860
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
861
  AC_MSG_ERROR([conditional \"$1\" was never defined.
862
Usually this means the macro was only invoked conditionally.])
863
fi])])
864
 
865
dnl
866
dnl canonical-target-name.m4,v 1.12 2001/09/14 17:30:22 joel Exp
867
dnl
868
 
869
dnl canonicalize target cpu
870
dnl NOTE: Most rtems targets do not fullfil autoconf's
871
dnl target naming conventions "processor-vendor-os"
872
dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
873
dnl and we have to fix it for rtems ourselves
874
 
875
AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
876
[
877
AC_CANONICAL_TARGET
878
AC_MSG_CHECKING(rtems target cpu)
879
case "${target}" in
880
  # hpux unix port should go here
881
  i[[34567]]86-*linux*)         # unix "simulator" port
882
        RTEMS_CPU=unix
883
        ;;
884
  i[[34567]]86-*freebsd*)       # unix "simulator" port
885
        RTEMS_CPU=unix
886
        ;;
887
  i[[34567]]86-pc-cygwin*)      # Cygwin is just enough unix like :)
888
        RTEMS_CPU=unix
889
        ;;
890
  no_cpu-*rtems*)
891
        RTEMS_CPU=no_cpu
892
        ;;
893
  sparc-sun-solaris*)           # unix "simulator" port
894
        RTEMS_CPU=unix
895
        ;;
896
  *)
897
        RTEMS_CPU=`echo $target | sed 's%^\([[^-]]*\)-\(.*\)$%\1%'`
898
        ;;
899
esac
900
AC_SUBST(RTEMS_CPU)
901
AC_MSG_RESULT($RTEMS_CPU)
902
])
903
 
904
# Add --enable-maintainer-mode option to configure.
905
# From Jim Meyering
906
 
907
# Copyright 1996, 1998, 2000, 2001 Free Software Foundation, Inc.
908
 
909
# This program is free software; you can redistribute it and/or modify
910
# it under the terms of the GNU General Public License as published by
911
# the Free Software Foundation; either version 2, or (at your option)
912
# any later version.
913
 
914
# This program is distributed in the hope that it will be useful,
915
# but WITHOUT ANY WARRANTY; without even the implied warranty of
916
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
917
# GNU General Public License for more details.
918
 
919
# You should have received a copy of the GNU General Public License
920
# along with this program; if not, write to the Free Software
921
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
922
# 02111-1307, USA.
923
 
924
# serial 1
925
 
926
AC_DEFUN([AM_MAINTAINER_MODE],
927
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
928
  dnl maintainer-mode is disabled by default
929
  AC_ARG_ENABLE(maintainer-mode,
930
[  --enable-maintainer-mode enable make rules and dependencies not useful
931
                          (and sometimes confusing) to the casual installer],
932
      USE_MAINTAINER_MODE=$enableval,
933
      USE_MAINTAINER_MODE=no)
934
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
935
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
936
  MAINT=$MAINTAINER_MODE_TRUE
937
  AC_SUBST(MAINT)dnl
938
]
939
)
940
 
941
dnl env-rtemsbsp.m4,v 1.7 2002/08/06 07:31:47 ralf Exp
942
 
943
dnl Pass a single BSP via an environment variable
944
dnl used by per BSP configure scripts
945
AC_DEFUN(RTEMS_ENV_RTEMSBSP,
946
[dnl
947
AC_BEFORE([$0], [RTEMS_ENABLE_RTEMSBSP])dnl
948
AC_BEFORE([$0], [RTEMS_PROJECT_ROOT])dnl
949
AC_BEFORE([$0], [RTEMS_CHECK_CUSTOM_BSP])dnl
950
 
951
AC_ARG_VAR([RTEMS_BSP],[RTEMS_BSP to build])
952
AC_MSG_CHECKING([for RTEMS_BSP])
953
AC_CACHE_VAL(rtems_cv_RTEMS_BSP,
954
[dnl
955
  test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
956
])dnl
957
if test -z "$rtems_cv_RTEMS_BSP"; then
958
  AC_MSG_ERROR([Missing RTEMS_BSP])
959
fi
960
RTEMS_BSP="$rtems_cv_RTEMS_BSP"
961
AC_MSG_RESULT(${RTEMS_BSP})
962
AC_SUBST(RTEMS_BSP)
963
 
964
RTEMS_BSP_SPECS="-specs bsp_specs -qrtems"
965
AC_SUBST(RTEMS_BSP_SPECS)
966
 
967
GCC_SPECS="-B\$(PROJECT_ROOT)/lib/ -B\$(PROJECT_ROOT)/$RTEMS_BSP/lib/"
968
AC_SUBST(GCC_SPECS)
969
 
970
PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
971
AC_SUBST(PROJECT_INCLUDE)
972
 
973
PROJECT_RELEASE="\$(PROJECT_ROOT)/$RTEMS_BSP"
974
AC_SUBST(PROJECT_RELEASE)
975
 
976
RTEMS_ROOT=$PROJECT_ROOT/c/$RTEMS_BSP
977
AC_SUBST(RTEMS_ROOT)
978
 
979
RTEMS_ENABLE_BARE
980
AC_SUBST(BARE_CPU_MODEL)
981
AC_SUBST(BARE_CPU_CFLAGS)
982
 
983
AM_CONDITIONAL([MULTILIB],[false])
984
 
985
includedir="\${exec_prefix}/${RTEMS_BSP}/lib/include"
986
libdir="\${exec_prefix}/${RTEMS_BSP}/lib"
987
 
988
bsplibdir="\${exec_prefix}/${RTEMS_BSP}/lib"
989
AC_SUBST(bsplibdir)
990
])
991
 
992
dnl enable-rtemsbsp.m4,v 1.10 2001/09/13 13:14:30 joel Exp
993
 
994
dnl Override the set of BSPs to be built.
995
dnl used by the toplevel configure script
996
dnl RTEMS_ENABLE_RTEMSBSP(rtems_bsp_list)
997
AC_DEFUN(RTEMS_ENABLE_RTEMSBSP,
998
[
999
AC_BEFORE([$0], [RTEMS_ENV_RTEMSBSP])dnl
1000
AC_ARG_ENABLE(rtemsbsp,
1001
AC_HELP_STRING([--enable-rtemsbsp="bsp1 bsp2 .."],
1002
[BSPs to include in build]),
1003
[case "${enableval}" in
1004
  yes|no) AC_MSG_ERROR([missing argument to --enable-rtemsbsp=\"bsp1 bsp2\"]);;
1005
  *) $1=$enableval;;
1006
esac],[$1=""])
1007
])
1008
 
1009
dnl
1010
dnl project-root.m4,v 1.6 2001/12/20 17:33:23 joel Exp
1011
dnl
1012
 
1013
dnl
1014
dnl PROJECT_TOPdir     .. relative path to the top of the build-tree
1015
dnl PROJECT_ROOT       .. relative path to the top of the temporary
1016
dnl                       installation directory inside the build-tree
1017
dnl RTEMS_TOPdir       .. relative path of a subpackage's configure.in to the
1018
dnl                       toplevel configure.in of the source-tree
1019
dnl RTEMS_ROOT         .. path to the top of a bsp's build directory
1020
dnl                       [Applied by custom/*.cfg, depredicated otherwise]
1021
dnl
1022
 
1023
AC_DEFUN(RTEMS_PROJECT_ROOT,
1024
[dnl
1025
AC_REQUIRE([RTEMS_TOP])
1026
 
1027
PACKHEX="\$(PROJECT_TOPdir)/tools/build/packhex"
1028
AC_SUBST(PACKHEX)
1029
])
1030
 
1031
 
1032
dnl check-bsps.m4,v 1.18 2001/11/21 18:36:51 joel Exp
1033
 
1034
dnl Report all available bsps for a target,
1035
dnl check if a bsp-subdirectory is present for all bsps found
1036
dnl
1037
dnl RTEMS_CHECK_BSPS(bsp_list)
1038
AC_DEFUN(RTEMS_CHECK_BSPS,
1039
[
1040
AC_REQUIRE([RTEMS_CHECK_CPU])dnl sets RTEMS_CPU, target
1041
AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
1042
AC_MSG_CHECKING([for bsps])
1043
    files=`ls $srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU`
1044
    for file in $files; do
1045
      if test -r $srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU/$file/bsp_specs; then
1046
        case $file in
1047
        # Now account for BSPs with build variants
1048
          c4xsim)            $1="[$]$1 c4xsim c3xsim";;
1049
          gen68360)          $1="[$]$1 gen68360 gen68360_040";;
1050
          p4000)             $1="[$]$1 p4600 p4650";;
1051
          mvme162)           $1="[$]$1 mvme162 mvme162lx";;
1052
          mbx8xx)            $1="[$]$1 mbx821_001 mbx860_002 mbx860_005b";;
1053
          motorola_powerpc)  $1="[$]$1 mvme2307 mcp750";;
1054
          pc386)             $1="[$]$1 pc386 pc386dx pc486 pc586 pc686 pck6";;
1055
          erc32)             $1="[$]$1 erc32 erc32nfp";;
1056
          leon)              $1="[$]$1 leon1 leon2";;
1057
          sim68000)          $1="[$]$1 sim68000 simcpu32";;
1058
          shsim)             $1="[$]$1 simsh7032 simsh7045";;
1059
          *)                 $1="[$]$1 $file";;
1060
        esac;
1061
      fi
1062
    done
1063
AC_MSG_RESULT([[$]$1 .. done])
1064
])dnl
1065
 
1066
AC_DEFUN(RTEMS_CHECK_CUSTOM_BSP,
1067
[dnl
1068
AC_REQUIRE([RTEMS_TOP])
1069
 
1070
AC_MSG_CHECKING([for make/custom/[$]$1.cfg])
1071
if test -r "$srcdir/$RTEMS_TOPdir/make/custom/[$]$1.cfg"; then
1072
  AC_MSG_RESULT([yes])
1073
else
1074
  AC_MSG_ERROR([no])
1075
fi
1076
])dnl
1077
 
1078
dnl check-cpu.m4,v 1.6 2002/07/22 10:13:20 ralf Exp
1079
 
1080
dnl check if RTEMS support a cpu
1081
AC_DEFUN(RTEMS_CHECK_CPU,
1082
[dnl
1083
AC_REQUIRE([RTEMS_TOP])
1084
AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])
1085
 
1086
# Is this a supported CPU?
1087
AC_MSG_CHECKING([if cpu $RTEMS_CPU is supported])
1088
# FIXME: Temporary hack
1089
if test -d "$srcdir/$RTEMS_TOPdir/cpukit/score/cpu/$RTEMS_CPU"; then
1090
  AC_MSG_RESULT(yes)
1091
else
1092
  AC_MSG_ERROR(no)
1093
fi
1094
])dnl
1095
 
1096
 
1097
AC_DEFUN(RTEMS_ENABLE_BARE,
1098
[
1099
AC_ARG_ENABLE(bare-cpu-cflags,
1100
AC_HELP_STRING([--enable-bare-cpu-cflags],[specify a particular cpu cflag (bare bsp specific)]),
1101
[case "${enableval}" in
1102
  no) BARE_CPU_CFLAGS="" ;;
1103
  *)    BARE_CPU_CFLAGS="${enableval}" ;;
1104
esac],
1105
[BARE_CPU_CFLAGS=""])
1106
 
1107
AC_ARG_ENABLE(bare-cpu-model,
1108
AC_HELP_STRING([--enable-bare-cpu-model],[specify a particular cpu model (bare bsp specific)]),
1109
[case "${enableval}" in
1110
  no)   BARE_CPU_MODEL="" ;;
1111
  *)    BARE_CPU_MODEL="${enableval}" ;;
1112
esac],
1113
[BARE_CPU_MODEL=""])
1114
])
1115
 
1116
 
1117
dnl check-bsp-cache.m4,v 1.3 2000/11/09 17:04:53 joel Exp
1118
 
1119
dnl RTEMS_CHECK_BSP_CACHE(RTEMS_BSP)
1120
AC_DEFUN(RTEMS_CHECK_BSP_CACHE,
1121
[
1122
AC_REQUIRE([RTEMS_CHECK_CPU])dnl sets RTEMS_CPU, target
1123
AC_REQUIRE([RTEMS_ENV_RTEMSBSP])dnl set RTEMS_BSP
1124
AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
1125
AC_CACHE_CHECK([for RTEMS_CPU_MODEL], rtems_cv_RTEMS_CPU_MODEL,
1126
. $RTEMS_TOPdir/c/[$]$1/make/[$]$1.cache)
1127
RTEMS_CPU_MODEL=$rtems_cv_RTEMS_CPU_MODEL
1128
AC_SUBST(RTEMS_CPU_MODEL)
1129
AC_CACHE_CHECK([for RTEMS_BSP_FAMILY], rtems_cv_RTEMS_BSP_FAMILY,
1130
. $RTEMS_TOPdir/c/[$]$1/make/[$]$1.cache)
1131
RTEMS_BSP_FAMILY=$rtems_cv_RTEMS_BSP_FAMILY
1132
AC_SUBST(RTEMS_BSP_FAMILY)
1133
])dnl
1134
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.