source: rtems/contrib/cygwin/configure.ac @ 7273b6e

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

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

  • configure.ac: AC_INIT(package,_RTEMS_VERSION,_RTEMS_BUGS). AM_INIT_AUTOMAKE([no-define foreign 1.6]).
  • 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-contrib-cygwin],[_RTEMS_VERSION],[rtems-bugs@OARcorp.com])
5AC_CONFIG_SRCDIR([setup])
6
7AM_INIT_AUTOMAKE([no-define foreign 1.6])
8
9test -f ./setup.cache || cp ${srcdir}/setup.def ./setup.cache
10. ./setup.cache
11
12# Some linux distributions use /usr/src/packages
13# redhat uses /usr/src/redhat
14# others might use /usr/src
15AC_MSG_CHECKING(for rpm SPECS directory)
16if test -d /usr/src/packages/SPECS;
17then
18  RPM_SPECSdir=/usr/src/packages/SPECS;
19elif test -d /usr/src/redhat/SPECS;
20then
21  RPM_SPECSdir=/usr/src/redhat/SPECS;
22elif test -d /usr/src/SPECS;
23then
24  RPM_SPECSdir=/usr/src/SPECS;
25elif test -d /usr/local/src/redhat/SPECS;
26then
27  RPM_SPECSdir=/usr/local/src/redhat/SPECS;
28fi
29if test x"$RPM_SPECSdir" = x"" ; then
30AC_MSG_ERROR(not found)
31fi
32AC_MSG_RESULT($RPM_SPECSdir)
33AC_SUBST(RPM_SPECSdir)
34
35BINUTILS_VERS="${binutils_version}"
36AC_SUBST(BINUTILS_VERS)
37BINUTILS_RPMVERS=`echo ${binutils_version} | tr '-' '_'`
38AC_SUBST(BINUTILS_RPMVERS)
39BINUTILS_RPMREL="${binutils_rpm_release}"
40AC_SUBST(BINUTILS_RPMREL)
41
42MINGW_VERS="${mingw_version}"
43AC_SUBST(MINGW_VERS)
44MINGW_RPMVERS=`echo ${mingw_version} | tr '-' '_'`
45AC_SUBST(MINGW_RPMVERS)
46MINGW_RPMREL="${mingw_rpm_release}"
47AC_SUBST(MINGW_RPMREL)
48
49W32API_VERS="${w32api_version}"
50AC_SUBST(W32API_VERS)
51W32API_RPMVERS=`echo ${w32api_version} | tr '-' '_'`
52AC_SUBST(W32API_RPMVERS)
53W32API_RPMREL="${w32api_rpm_release}"
54AC_SUBST(W32API_RPMREL)
55
56CYGWIN_VERS="${cygwin_version}"
57AC_SUBST(CYGWIN_VERS)
58CYGWIN_RPMVERS=`echo ${cygwin_version} | tr '-' '_'`
59AC_SUBST(CYGWIN_RPMVERS)
60CYGWIN_RPMREL="${cygwin_rpm_release}"
61AC_SUBST(CYGWIN_RPMREL)
62
63GCC_VERS="${gcc_version}"
64AC_SUBST(GCC_VERS)
65GCC_RPMVERS=`echo ${gcc_version} | tr '-' '_'`
66AC_SUBST(GCC_RPMVERS)
67GCC_RPMREL="${gcc_rpm_release}"
68AC_SUBST(GCC_RPMREL)
69
70RPM_BUILD_ROOT="$rpm_build_root/%{name}-root"
71AC_SUBST(RPM_BUILD_ROOT)
72
73AC_CONFIG_FILES([Makefile
74i386-cygwin-binutils.spec
75i386-cygwin-libs.spec
76i386-cygwin-w32api.spec
77i386-cygwin-gcc.spec
78i386-cygwin-mingw.spec
79])
80AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.