source: rtems/contrib/rtemsrpms/configure.ac @ df16b8bf

4.104.114.95
Last change on this file since df16b8bf was fcb0cd46, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 2, 2006 at 6:06:55 AM

2006-12-02 Ralf Corsépius <ralf.corsepius@…>

  • configure.ac: New BUG-REPORT address.
  • Property mode set to 100644
File size: 2.5 KB
Line 
1## $Id$
2
3m4_define([M4_RTEMS_API],[4.7])
4m4_define([M4_RTEMS_VERSION],[4.6.99.3])
5m4_define([M4_RTEMS_RELEASE],[0])
6
7AC_PREREQ(2.59)
8AC_INIT([rtemsrpms],[M4_RTEMS_RELEASE],[http://www.rtems.org/bugzilla])
9AC_CONFIG_AUX_DIR(.)
10
11AC_CANONICAL_HOST
12
13AC_PREFIX_DEFAULT([/opt/rtems-][M4_RTEMS_API])
14
15AM_INIT_AUTOMAKE([1.9])
16
17rpmprefix="[rtems-]M4_RTEMS_API[-]"
18
19case "$prefix" in
20 /usr/local)
21  rpmprefix="local-"
22  ;;
23 /opt/rtems)
24  ;;
25 NONE|$ac_default_prefix)
26  prefix=$ac_default_prefix
27  ;;
28 *)
29  rpmprefix="custom-"
30  ;;
31esac
32
33AC_ARG_ENABLE([rpmprefix],
34[  --enable-rpmprefix=<rpmprefix>      prefix rpms],[
35  case "$enable_rpmprefix" in
36  yes) # ignore, use default
37    ;;
38  no) # use default
39    ;;
40  *) # presume user knows what he is doing
41    rpmprefix=$enable_rpmprefix;;
42  esac
43])
44
45AC_MSG_CHECKING([for rpm database])
46rpmdbpath=
47AC_ARG_ENABLE([rpmdbpath],
48[  --enable-rpmdbpath=<rpmdbpath>      rpm database path],[
49  case "$enable_rpmdbpath" in
50  yes) # ignore, use default
51    ;;
52  no) # use default
53    ;;
54  *) # presume user knows what he is doing
55    rpmdbpath="--dbpath $enable_rpmdbpath";;
56  esac
57])
58AS_IF([test -z $rpmdbpath],
59      [AC_MSG_RESULT([system])],
60      [AC_MSG_RESULT([$rpmdbpath])])
61
62AC_MSG_CHECKING([for bootstrap])
63bootstrap=no
64AC_ARG_ENABLE([bootstrap],
65[  --enable-bootstrap=<bootstap>      bootstrap RTEMS],[
66  case "$enable_bootstrap" in
67  yes|no) # ignore, use default
68   bootstrap=$enable_bootstrap;;
69  *) # use default
70   ;;
71  esac
72])
73AC_MSG_RESULT([$bootstrap])
74
75dnl The total list:
76dnl  arm avr h8300 i386 m68k mips powerpc sh sparc tic4x
77AC_MSG_CHECKING([for targets])
78AC_ARG_ENABLE([targets],
79  AS_HELP_STRING([--enable-targets=<targets>],[build for targets <targets>]),
80  [targets="$enable_targets"],
81  [targets="arm i386 m68k mips powerpc sh sparc tic4x"]
82)
83AC_MSG_RESULT([$targets])
84
85AC_MSG_CHECKING([for bsps])
86bsps="%{nil}"
87AC_ARG_ENABLE([bsps],
88[  --enable-bsps=<yes/no/bsps>    BSP list],[
89  case "$enable_bsps" in
90  yes) # ignore, use default
91   bsps="all"
92   ;;
93  no | none)
94   bsps="%{nil}"
95   ;;
96  *) # take a the list to build
97   bsps="$enable_bsps"
98   ;;
99  esac
100])
101AS_IF([test x"$bsps" = x"%{nil}"],
102      [AC_MSG_RESULT([none])],
103      [AC_MSG_RESULT([$bsps])])
104
105AC_SUBST(RTEMS_API, [M4_RTEMS_API])
106AC_SUBST(RTEMS_VERSION, [M4_RTEMS_VERSION])
107AC_SUBST(RTEMS_RELEASE, [M4_RTEMS_RELEASE])
108AC_SUBST(PREFIX, [$prefix])
109AC_SUBST(TARGETS, [$targets])
110AC_SUBST(RPMPREFIX, [$rpmprefix])
111AC_SUBST(RPMDBPATH, [$rpmdbpath])
112AC_SUBST(RTEMS_BOOTSTRAP, [$bootstrap])
113AC_SUBST(RTEMS_BSP, [$bsps])
114
115AC_CONFIG_FILES([Makefile rtems.spec])
116
117AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.