source: rtems/c/src/lib/libcpu/powerpc/configure.ac @ 4a1eb75

4.104.114.84.95
Last change on this file since 4a1eb75 was 4a1eb75, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 11, 2007 at 1:10:12 PM

2007-09-11 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, configure.ac: Do not build networking drivers if networking is disabled.
  • Property mode set to 100644
File size: 2.7 KB
Line 
1## Process this file with autoconf to produce a configure script.
2##
3## $Id$
4
5AC_PREREQ(2.60)
6AC_INIT([rtems-c-src-lib-libcpu-powerpc],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla])
7AC_CONFIG_SRCDIR([mpc6xx])
8RTEMS_TOP([../../../../..],[../../..])
9
10RTEMS_CANONICAL_TARGET_CPU
11
12AM_INIT_AUTOMAKE([no-define foreign subdir-objects 1.10])
13AM_MAINTAINER_MODE
14
15RTEMS_ENV_RTEMSBSP
16
17RTEMS_PROJECT_ROOT
18
19RTEMS_PROG_CC_FOR_TARGET
20AM_PROG_CC_C_O
21RTEMS_CANONICALIZE_TOOLS
22RTEMS_PROG_CCAS
23
24AC_MSG_CHECKING([for style of powerpc exceptions])
25AC_COMPILE_IFELSE(
26  [AC_LANG_PROGRAM(
27    [],
28    [#if defined(_OLD_EXCEPTIONS)
29     choke me
30     #endif])],
31  [EXCEPTIONS=new],
32  [EXCEPTIONS=old])
33AC_MSG_RESULT([$EXCEPTIONS])
34AM_CONDITIONAL([OLD_EXCEPTIONS],[test "$EXCEPTIONS" = old])
35
36AM_CONDITIONAL(shared, \
37   test "$RTEMS_CPU_MODEL" = "mpc750" \
38|| test "$RTEMS_CPU_MODEL" = "mpc7400" \
39|| test "$RTEMS_CPU_MODEL" = "mpc7455" \
40|| test "$RTEMS_CPU_MODEL" = "mpc7457" \
41|| test "$RTEMS_CPU_MODEL" = "mpc555" \
42|| test "$RTEMS_CPU_MODEL" = "mpc5xx" \
43|| test "$RTEMS_CPU_MODEL" = "ppc603e" \
44|| test "$RTEMS_CPU_MODEL" = "ppc403" \
45|| test "$RTEMS_CPU_MODEL" = "ppc405" \
46|| test "$RTEMS_CPU_MODEL" = "mpc604" \
47|| test "$RTEMS_CPU_MODEL" = "mpc6xx" \
48|| test "$RTEMS_CPU_MODEL" = "mpc8xx" \
49|| test "$RTEMS_CPU_MODEL" = "mpc821" \
50|| test "$RTEMS_CPU_MODEL" = "mpc860" \
51|| test "$RTEMS_CPU_MODEL" = "mpc8240" \
52|| test "$RTEMS_CPU_MODEL" = "mpc8245" \
53|| test "$RTEMS_CPU_MODEL" = "mpc8260" \
54|| test "$RTEMS_CPU_MODEL" = "mpc83xx" )
55
56## test on CPU type
57AM_CONDITIONAL(mpc505, test "$RTEMS_CPU_MODEL" = "mpc505")
58AM_CONDITIONAL(mpc5xx, test "$RTEMS_CPU_MODEL" = "mpc5xx" \
59|| test "$RTEMS_CPU_MODEL" = "mpc555" )
60AM_CONDITIONAL(mpc6xx, test "$RTEMS_CPU_MODEL" = "mpc6xx" \
61|| test "$RTEMS_CPU_MODEL" = "mpc604" \
62|| test "$RTEMS_CPU_MODEL" = "mpc7400" \
63|| test "$RTEMS_CPU_MODEL" = "mpc7455" \
64|| test "$RTEMS_CPU_MODEL" = "mpc7457" \
65|| test "$RTEMS_CPU_MODEL" = "mpc750" \
66|| test "$RTEMS_CPU_MODEL" = "mpc8240" \
67|| test "$RTEMS_CPU_MODEL" = "mpc8245" \
68|| test "$RTEMS_CPU_MODEL" = "mpc83xx" )
69AM_CONDITIONAL(mpc8xx, test "$RTEMS_CPU_MODEL" = "mpc8xx" \
70|| test "$RTEMS_CPU_MODEL" = "mpc821" \
71|| test "$RTEMS_CPU_MODEL" = "mpc860" )
72AM_CONDITIONAL(mpc8260, test "$RTEMS_CPU_MODEL" = "mpc8260")
73AM_CONDITIONAL(mpc83xx, test "$RTEMS_CPU_MODEL" = "mpc83xx")
74
75# the ppc405 shares files with the ppc403
76AM_CONDITIONAL(ppc403,[test "$RTEMS_CPU_MODEL" = "ppc403" \
77|| test "$RTEMS_CPU_MODEL" = "ppc405"])
78AM_CONDITIONAL(ppc405, test "$RTEMS_CPU_MODEL" = "ppc405")
79
80RTEMS_CHECK_NETWORKING
81AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
82
83RTEMS_AMPOLISH3
84
85# Explicitly list all Makefiles here
86AC_CONFIG_FILES([Makefile
87])
88AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.