source: rtems/scripts/configure.in @ df25c998

4.104.114.84.95
Last change on this file since df25c998 was a792b78, checked in by Joel Sherrill <joel.sherrill@…>, on 09/06/01 at 18:38:31

2001-07-19 Ralf Corsepius <corsepiu@…>

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