source: rtems/scripts/configure.ac @ d7c8239

4.104.114.84.95
Last change on this file since d7c8239 was d7c8239, checked in by Joel Sherrill <joel.sherrill@…>, on 03/28/02 at 00:54:33

2002-03-27 Ralf Corsepius <corsepiu@…>

  • configure.ac: AC_INIT(package,_RTEMS_VERSION,_RTEMS_BUGS). AM_INIT_AUTOMAKE([no-define foreign 1.6]).
  • autotools/Makefile.am: Remove AUTOMAKE_OPTIONS.
  • Makefile.am: Remove AUTOMAKE_OPTIONS.
  • binutils/Makefile.am: Remove AUTOMAKE_OPTIONS.
  • gccnewlib/Makefile.am: Remove AUTOMAKE_OPTIONS.
  • gdb/Makefile.am: Remove AUTOMAKE_OPTIONS.
  • rtems/Makefile.am: Remove AUTOMAKE_OPTIONS.
  • Property mode set to 100644
File size: 2.0 KB
Line 
1## $Id$
2
3AC_PREREQ(2.52)
4AC_INIT([rtems-scripts],[_RTEMS_VERSION],[rtems-bugs@OARcorp.com])
5AC_CONFIG_SRCDIR([binutils])
6AC_PREFIX_DEFAULT([/opt/rtems])
7AM_INIT_AUTOMAKE([no-define foreign 1.6])
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
24AC_MSG_CHECKING(for rpm SPECS directory)
25# Allow users to override RPM_SPECSdir from the environment.
26if test -z "$RPM_SPECSdir" ;
27then
28# SuSE uses /usr/src/packages
29# redhat uses /usr/src/redhat
30# MDK is reported to use /usr/src/RPM
31# others might use /usr/src
32  rpmpath="/usr:/usr/local"
33  rpmdirs="src/packages:src/redhat:src/RPM:src"
34  save_IFS="$IFS"; IFS=":"
35  for d in $rpmdirs; do
36    for p in $rpmpath; do
37      list="$p/$d:$list"
38    done
39  done
40  for d in $list; do
41    if test -d $d/SPECS; then
42      RPM_SPECSdir="$d/SPECS";
43      break;
44    fi
45  done
46  IFS="$save_IFS"
47fi
48
49if test x"$RPM_SPECSdir" = x"" ; then
50AC_MSG_ERROR([not found])
51fi
52AC_MSG_RESULT($RPM_SPECSdir)
53AC_SUBST(RPM_SPECSdir)
54
55AC_MSG_CHECKING(for RPM CPU type)
56case "$host" in
57  i?86-*linux*)         RPM_CPU=i386 ;;
58  i?86-*cygwin*)        RPM_CPU=i386 ;;
59  sparc-*solaris*)      RPM_CPU=sparc ;;
60  *)
61    AC_MSG_ERROR([RPM CPU for ${host} is unknown])
62    ;;
63esac
64AC_MSG_RESULT($RPM_CPU)
65
66GCCNEWLIBVERS="gcc-${gcc_version}-newlib-${newlib_version}"
67AC_SUBST(GCCNEWLIBVERS)
68BINUTILSVERS="binutils-${binutils_version}"
69AC_SUBST(BINUTILSVERS)
70GDBVERS="gdb-${gdb_version}"
71AC_SUBST(GDBVERS)
72BSPVERS="${rtems_version}"
73AC_SUBST(RTEMS_VERSION)
74AC_SUBST(BSPVERS)
75AC_SUBST(RPM_CPU)
76
77AC_CONFIG_FILES([Makefile
78buildall
79buildalltar
80mkbinutilspec
81mkgccnewlibspec
82mkgdbspec
83mkbspspec
84binutils/Makefile
85gccnewlib/Makefile
86gdb/Makefile
87rtems/Makefile
88autotools/Makefile
89autotools/automake-rtems.spec
90])
91AC_CONFIG_COMMANDS([default],[[chmod 755 buildall
92chmod 755 buildalltar
93]],[[]])
94AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.