source: rtems/scripts/configure.in @ b507814

4.104.114.84.95
Last change on this file since b507814 was b507814, checked in by Joel Sherrill <joel.sherrill@…>, on 10/26/00 at 13:00:02

2000-10-26 Ralf Corsepius <corsepiu@…>

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