source: rtems/scripts/configure.ac @ 76c6828d

4.104.114.84.95
Last change on this file since 76c6828d was d7aecdc, checked in by Joel Sherrill <joel.sherrill@…>, on 10/12/01 at 18:47:00

2001-10-11 Ralf Corsepius <corsepiu@…>

  • .cvsignore: Add autom4te.cache for autoconf > 2.52.
  • configure.in: Remove.
  • Property mode set to 100644
File size: 1.8 KB
Line 
1## $Id$
2
3AC_PREREQ(2.52)
4AC_INIT
5AC_CONFIG_SRCDIR([binutils])
6
7AM_INIT_AUTOMAKE(rtems-scripts,20010516,no)
8
9AC_CANONICAL_HOST
10
11# Check for .exe suffix.
12# With autoconf > 2.13 AC_EXEEXT is not what we want to use.
13AC_MSG_CHECKING([for executable suffix])
14case "$host" in
15i?86-*cygwin*)
16  EXEEXT=.exe ;;
17esac
18AC_SUBST(EXEEXT)
19AC_MSG_RESULT([$EXEEXT])
20
21test -f ./setup.cache || cp ${srcdir}/setup.def ./setup.cache
22. ./setup.cache
23
24# Some linux distributions use /usr/src/packages
25# redhat uses /usr/src/redhat
26# others might use /usr/src
27AC_MSG_CHECKING(for rpm SPECS directory)
28if test -d /usr/src/packages/SPECS;
29then
30  RPM_SPECSdir=/usr/src/packages/SPECS;
31elif test -d /usr/src/redhat/SPECS;
32then
33  RPM_SPECSdir=/usr/src/redhat/SPECS;
34elif test -d /usr/src/SPECS;
35then
36  RPM_SPECSdir=/usr/src/SPECS;
37elif test -d /usr/local/src/redhat/SPECS;
38then
39  RPM_SPECSdir=/usr/local/src/redhat/SPECS;
40fi
41if test x"$RPM_SPECSdir" = x"" ; then
42AC_MSG_ERROR(not found)
43fi
44AC_MSG_RESULT($RPM_SPECSdir)
45AC_SUBST(RPM_SPECSdir)
46
47AC_MSG_CHECKING(for RPM CPU type)
48case "$host" in
49  i?86-*linux*)         RPM_CPU=i386 ;;
50  i?86-*cygwin*)        RPM_CPU=i386 ;;
51  sparc-sun-solaris*)   RPM_CPU=sparc ;;
52  *)
53    AC_MSG_ERROR([RPM CPU for ${host} is unknown])
54    ;;
55esac
56AC_MSG_RESULT($RPM_CPU)
57
58GCCNEWLIBVERS="gcc-${gcc_version}-newlib-${newlib_version}"
59AC_SUBST(GCCNEWLIBVERS)
60BINUTILSVERS="binutils-${binutils_version}"
61AC_SUBST(BINUTILSVERS)
62GDBVERS="gdb-${gdb_version}"
63AC_SUBST(GDBVERS)
64BSPVERS="${rtems_version}"
65AC_SUBST(RTEMS_VERSION)
66AC_SUBST(BSPVERS)
67AC_SUBST(RPM_CPU)
68
69AC_CONFIG_FILES([Makefile
70buildall
71buildalltar
72mkbinutilspec
73mkgccnewlibspec
74mkgdbspec
75mkbspspec
76binutils/Makefile
77gccnewlib/Makefile
78gdb/Makefile
79rtems/Makefile
80autotools/Makefile])
81AC_CONFIG_COMMANDS([default],[[chmod 755 buildall
82chmod 755 buildalltar
83]],[[]])
84AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.