source: rtems/scripts/configure.ac @ d21091b

4.104.114.84.95
Last change on this file since d21091b was d21091b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 25, 2002 at 2:52:25 PM

2002-10-25 Joel Sherrill <joel@…>

  • autotools/autoconf-rtems.spec.in: New. Remove Provides: autoconf (Conflicts with RH-8.0).
  • autotools/autoconf-rtems.spec: Remove.
  • autotools/automake-rtems.spec.in: Remove Provides: automake (Conflicts with RH-8.0).
  • gcc3newlib/Makefile.am: Remove references to mkgcc3newlibspec.
  • Makefile.am: Ditto.
  • configure.ac: Add autotools/autoconf-rtems.spec.in.
  • Property mode set to 100644
File size: 2.6 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
81binutils/Makefile
82gccnewlib/Makefile
83gcc3newlib/Makefile
84gdb/Makefile
85rtems/Makefile
86autotools/Makefile
87autotools/automake-rtems.spec
88autotools/autoconf-rtems.spec
89cpukit/Makefile
90])
91
92AC_CONFIG_FILES([buildalltar],[chmod +x buildalltar])
93AC_CONFIG_FILES([buildall],[chmod +x buildall])
94AC_CONFIG_FILES([mkgdbspec],[chmod +x mkgdbspec])
95AC_CONFIG_FILES([mkbinutilspec],[chmod +x mkbinutilspec])
96AC_CONFIG_FILES([mkgccnewlibspec],[chmod +x mkgccnewlibspec])
97AC_CONFIG_FILES([mkbspspec],[chmod +x mkbspspec])
98AC_CONFIG_FILES([gcc3newlib/mkspec],[chmod +x gcc3newlib/mkspec])
99AC_CONFIG_FILES([cpukit/mkspec],[chmod +x cpukit/mkspec])
100
101AC_CONFIG_COMMANDS([default],[[chmod 755 buildall
102chmod 755 buildalltar
103]],[[]])
104AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.