source: rtems/scripts/configure.ac @ 99f97d3f

Last change on this file since 99f97d3f was ccd81b60, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/11/03 at 11:47:49

2003-02-11 Ralf Corsepius <corsepiu@…>

  • configure.ac: AM_INIT_AUTOMAKE([1.7.2]).
  • Property mode set to 100644
File size: 2.5 KB
Line 
1## $Id$
2
3AC_PREREQ(2.57)
4AC_INIT([rtems-scripts],[_RTEMS_VERSION],[rtems-bugs@OARcorp.com])
5AC_CONFIG_SRCDIR([binutils])
6RTEMS_TOP([..])
7AC_PREFIX_DEFAULT([/opt/rtems])
8AM_INIT_AUTOMAKE([no-define foreign 1.7.2])
9
10AC_CANONICAL_HOST
11
12test -f ./setup.cache || cp ${srcdir}/setup.def ./setup.cache
13. ./setup.cache
14
15AC_MSG_CHECKING(for rpm SPECS directory)
16# Allow users to override RPM_SPECSdir from the environment.
17if test -z "$RPM_SPECSdir" ;
18then
19# SuSE uses /usr/src/packages
20# redhat uses /usr/src/redhat
21# MDK is reported to use /usr/src/RPM
22# others might use /usr/src
23  rpmpath="/usr:/usr/local"
24  rpmdirs="src/packages:src/redhat:src/RPM:src"
25  save_IFS="$IFS"; IFS=":"
26  for d in $rpmdirs; do
27    for p in $rpmpath; do
28      list="$p/$d:$list"
29    done
30  done
31  for d in $list; do
32    if test -d $d/SPECS; then
33      RPM_SPECSdir="$d/SPECS";
34      break;
35    fi
36  done
37  IFS="$save_IFS"
38fi
39
40if test x"$RPM_SPECSdir" = x"" ; then
41AC_MSG_ERROR([not found])
42fi
43AC_MSG_RESULT($RPM_SPECSdir)
44AC_SUBST(RPM_SPECSdir)
45
46AC_MSG_CHECKING(for RPM CPU type)
47case "$host" in
48  i?86-*linux*)         RPM_CPU=i386 ;;
49  i?86-*cygwin*)        RPM_CPU=i386 ;;
50  sparc-*solaris*)      RPM_CPU=sparc ;;
51  *)
52    AC_MSG_ERROR([RPM CPU for ${host} is unknown])
53    ;;
54esac
55AC_MSG_RESULT($RPM_CPU)
56
57GCCNEWLIBVERS="gcc-${gcc_version}-newlib-${newlib_version}"
58AC_SUBST(GCCNEWLIBVERS)
59GCC3NEWLIBVERS="gcc-${gcc3_version}-newlib-${gcc3newlib_version}"
60AC_SUBST(GCC3NEWLIBVERS)
61BINUTILSVERS="binutils-${binutils_version}"
62AC_SUBST(BINUTILSVERS)
63GDBVERS="gdb-${gdb_version}"
64AC_SUBST(GDBVERS)
65BSPVERS="${rtems_version}"
66AC_SUBST(RTEMS_VERSION)
67AC_SUBST(BSPVERS)
68AC_SUBST(RPM_CPU)
69
70AC_CONFIG_FILES([Makefile
71binutils/Makefile
72gccnewlib/Makefile
73gcc3newlib/Makefile
74gdb/Makefile
75rtems/Makefile
76autotools/Makefile
77autotools/automake-rtems.spec
78autotools/autoconf-rtems.spec
79cpukit/Makefile
80rtemsdoc/Makefile
81])
82
83AC_CONFIG_FILES([common/common.add common/clean.add])
84AC_CONFIG_FILES([buildalltar],[chmod +x buildalltar])
85AC_CONFIG_FILES([buildall],[chmod +x buildall])
86AC_CONFIG_FILES([gdb/mkspec],[chmod +x gdb/mkspec])
87AC_CONFIG_FILES([binutils/mkspec],[chmod +x binutils/mkspec])
88AC_CONFIG_FILES([mkgccnewlibspec],[chmod +x mkgccnewlibspec])
89AC_CONFIG_FILES([mkbspspec],[chmod +x mkbspspec])
90AC_CONFIG_FILES([gcc3newlib/mkspec],[chmod +x gcc3newlib/mkspec])
91AC_CONFIG_FILES([cpukit/mkspec],[chmod +x cpukit/mkspec])
92AC_CONFIG_FILES([rtemsdoc/mkspec],[chmod +x rtemsdoc/mkspec])
93
94AC_CONFIG_COMMANDS([default],[[chmod 755 buildall
95chmod 755 buildalltar
96]],[[]])
97AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.