source: rtems/scripts/configure.ac @ 620c972

4.104.114.84.95
Last change on this file since 620c972 was 620c972, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jul 29, 2002 at 7:40:53 AM

2002-07-29 Ralf Corsepius <corsepiu@…>

  • ChangeLog?: Fix 2002-07-22 ChangeLog? entry bogusly referring to Joel.
  • cpukit/Makefile.am: New.
  • cpukit/mkspec.in: New.
  • cpukit/rtems-cpukit.spec.in: New.
  • cpukit/.cvsignore: New.
  • configure.ac: Add cpukit. Add RTEMS_TOP to pickup _RTEMS_VERSION (required by cpukit).
  • Makefile.am: Add cpukit. Add ACLOCAL_AMFLAGS (required to pickup RTEMS_VERSION).
  • setup.def: Use %{_tmppath} as default for $rpm_build_root.
  • mkbinutilsspec.in: Use ',' as pattern delimiter in sed expression for $rpm_build_root.
  • mkgccnewlibspec.in: Use ',' as pattern delimiter in sed expression for $rpm_build_root.
  • mkgcc3newlibspec.in: Use ',' as pattern delimiter in sed expression for $rpm_build_root.
  • mkgdbspec.in: Use ',' as pattern delimiter in sed expression for $rpm_build_root.
  • Property mode set to 100644
File size: 2.2 KB
Line 
1## $Id$
2
3AC_PREREQ(2.52)
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.6])
9
10AC_CANONICAL_HOST
11
12# Check for .exe suffix.
13# With autoconf > 2.13 AC_EXEEXT is not what we want to use.
14AC_MSG_CHECKING([for executable suffix])
15case "$host" in
16i?86-*cygwin*)
17  EXEEXT=.exe ;;
18esac
19AC_SUBST(EXEEXT)
20AC_MSG_RESULT([$EXEEXT])
21
22test -f ./setup.cache || cp ${srcdir}/setup.def ./setup.cache
23. ./setup.cache
24
25AC_MSG_CHECKING(for rpm SPECS directory)
26# Allow users to override RPM_SPECSdir from the environment.
27if test -z "$RPM_SPECSdir" ;
28then
29# SuSE uses /usr/src/packages
30# redhat uses /usr/src/redhat
31# MDK is reported to use /usr/src/RPM
32# others might use /usr/src
33  rpmpath="/usr:/usr/local"
34  rpmdirs="src/packages:src/redhat:src/RPM:src"
35  save_IFS="$IFS"; IFS=":"
36  for d in $rpmdirs; do
37    for p in $rpmpath; do
38      list="$p/$d:$list"
39    done
40  done
41  for d in $list; do
42    if test -d $d/SPECS; then
43      RPM_SPECSdir="$d/SPECS";
44      break;
45    fi
46  done
47  IFS="$save_IFS"
48fi
49
50if test x"$RPM_SPECSdir" = x"" ; then
51AC_MSG_ERROR([not found])
52fi
53AC_MSG_RESULT($RPM_SPECSdir)
54AC_SUBST(RPM_SPECSdir)
55
56AC_MSG_CHECKING(for RPM CPU type)
57case "$host" in
58  i?86-*linux*)         RPM_CPU=i386 ;;
59  i?86-*cygwin*)        RPM_CPU=i386 ;;
60  sparc-*solaris*)      RPM_CPU=sparc ;;
61  *)
62    AC_MSG_ERROR([RPM CPU for ${host} is unknown])
63    ;;
64esac
65AC_MSG_RESULT($RPM_CPU)
66
67GCCNEWLIBVERS="gcc-${gcc_version}-newlib-${newlib_version}"
68AC_SUBST(GCCNEWLIBVERS)
69GCC3NEWLIBVERS="gcc-${gcc3_version}-newlib-${gcc3newlib_version}"
70AC_SUBST(GCC3NEWLIBVERS)
71BINUTILSVERS="binutils-${binutils_version}"
72AC_SUBST(BINUTILSVERS)
73GDBVERS="gdb-${gdb_version}"
74AC_SUBST(GDBVERS)
75BSPVERS="${rtems_version}"
76AC_SUBST(RTEMS_VERSION)
77AC_SUBST(BSPVERS)
78AC_SUBST(RPM_CPU)
79
80AC_CONFIG_FILES([Makefile
81buildall
82buildalltar
83mkbinutilspec
84mkgccnewlibspec
85mkgcc3newlibspec
86mkgdbspec
87mkbspspec
88binutils/Makefile
89gccnewlib/Makefile
90gcc3newlib/Makefile
91gdb/Makefile
92rtems/Makefile
93autotools/Makefile
94autotools/automake-rtems.spec
95cpukit/Makefile
96])
97AC_CONFIG_FILES([cpukit/mkspec],[chmod +x cpukit/mkspec])
98AC_CONFIG_COMMANDS([default],[[chmod 755 buildall
99chmod 755 buildalltar
100]],[[]])
101AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.