source: rtems/contrib/crossrpms/configure.ac @ b224280

4.104.114.84.95
Last change on this file since b224280 was b224280, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/15/06 at 17:42:31

Increment version

  • Property mode set to 100644
File size: 2.0 KB
Line 
1## $Id$
2
3m4_define([RTEMS_API],[4.7])
4
5AC_PREREQ(2.59)
6AC_INIT([crossrpms],[0.20060315.3],[rtems-bugs@rtems.com])
7AC_CONFIG_SRCDIR([binutils/binutils.add])
8AC_CONFIG_AUX_DIR(.)
9
10AC_CANONICAL_HOST
11AC_CANONICAL_TARGET
12
13AC_PREFIX_DEFAULT([/opt/rtems-][RTEMS_API])
14
15AM_INIT_AUTOMAKE([1.9])
16
17case "$prefix" in
18/usr)
19  build_infos=0
20  rpmprefix=
21  ;;
22/usr/local)
23  build_infos=0
24  rpmprefix="local-"
25  ;;
26/opt/rtems)
27  build_infos=1
28  rpmprefix="rtems-"
29  ;;
30NONE) # Default prefix
31  build_infos=1
32  rpmprefix="[rtems-]RTEMS_API[-]"
33  ;;
34esac
35
36AC_ARG_ENABLE([rpmprefix],
37[  --enable-rpmprefix=<rpmprefix>      prefix rpms],[
38  case "$enable_rpmprefix" in
39  yes) # ignore, use default
40    ;;
41  no) rpmprefix=
42    ;;
43  *) # presume user knows what he is doing
44    rpmprefix=$enable_rpmprefix;;
45  esac
46])
47AC_SUBST(rpmprefix)
48
49AC_ARG_ENABLE([infos],
50[  --enable-infos                      enable building infos],[
51  case "$enable_infos" in
52  yes)
53    build_infos=1;;
54  no)
55    build_infos=0;;
56  *)
57    AC_MSG_ERROR([Invalid argument to --enable-infos])
58  esac
59])
60AC_SUBST(build_infos)
61
62
63AS_IF([test "${host}" != "${build}"],[
64AC_MSG_CHECKING(for RPM OS)
65case "$host" in
66  i?86-*cygwin*)        RPM_OS=cygwin ;;
67  i?86-*mingw*)         RPM_OS=mingw32 ;;
68  sparc-*solaris*)      RPM_OS=solaris2.7 ;;
69  i?86-*freebsd5*)      RPM_OS=freebsd5.2 ;;
70  i?86-*freebsd*)       RPM_OS=freebsd6.0 ;;
71  *)
72    AC_MSG_ERROR([Unsupported host ${host}])
73    ;;
74esac
75AC_MSG_RESULT($RPM_OS)
76])
77AC_SUBST(RPM_OS)
78
79case "${target_os}" in
80  rtems|[rtems]RTEMS_API[])
81    TARGET_SUBDIRS=rtems
82    ;;
83  *) # ignore
84#    AC_MSG_ERROR([Unsupported target ${target}])
85esac
86AC_SUBST([TARGET_SUBDIRS])
87
88case "${target_os}" in
89  [rtems]RTEMS_API[])
90    osversion=[]RTEMS_API[]
91    ;;
92  *)
93  osversion=
94esac
95AC_SUBST([osversion])
96
97AC_CONFIG_FILES([Makefile])
98
99AC_CONFIG_FILES([cygwin/Makefile])
100AC_CONFIG_FILES([mingw32/Makefile])
101AC_CONFIG_FILES([solaris2.7/Makefile])
102AC_CONFIG_FILES([freebsd5.2/Makefile])
103AC_CONFIG_FILES([freebsd6.0/Makefile])
104AC_CONFIG_FILES([rtems/Makefile])
105
106AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.