source: rtems/scripts/configure.in @ 01ec6c0

4.104.114.84.95
Last change on this file since 01ec6c0 was 01ec6c0, checked in by Joel Sherrill <joel.sherrill@…>, on May 24, 2001 at 7:58:35 PM

2001-05-15 Ralf Corsepius <corsepiu@…>

  • configure.in: Remove AC_EXEEXT, treat .exe manually.
  • gccnewlib/base-gcc.add: Remove cpp.
  • gccnewlib/gccnewlib.add: mv cpp $target_alias-cpp, update copyright.
  • Property mode set to 100644
File size: 1.6 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
70mkbinutilspec
71mkgccnewlibspec
72mkgdbspec
73mkbspspec
74binutils/Makefile
75gccnewlib/Makefile
76gdb/Makefile
77rtems/Makefile,
78chmod 755 buildall
79)
Note: See TracBrowser for help on using the repository browser.