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

Subversion Repositories or1k

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

powered by: WebSVN 2.1.0

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