1 | ## $Id$ |
---|
2 | |
---|
3 | AC_PREREQ(2.59) |
---|
4 | AC_INIT([rtems-contrib-cygwin],[_RTEMS_VERSION],[rtems-bugs@rtems.com]) |
---|
5 | AC_CONFIG_SRCDIR([setup]) |
---|
6 | |
---|
7 | AM_INIT_AUTOMAKE([no-define foreign 1.9]) |
---|
8 | |
---|
9 | test -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 |
---|
15 | AC_MSG_CHECKING(for rpm SPECS directory) |
---|
16 | if test -d /usr/src/packages/SPECS; |
---|
17 | then |
---|
18 | RPM_SPECSdir=/usr/src/packages/SPECS; |
---|
19 | elif test -d /usr/src/redhat/SPECS; |
---|
20 | then |
---|
21 | RPM_SPECSdir=/usr/src/redhat/SPECS; |
---|
22 | elif test -d /usr/src/SPECS; |
---|
23 | then |
---|
24 | RPM_SPECSdir=/usr/src/SPECS; |
---|
25 | elif test -d /usr/local/src/redhat/SPECS; |
---|
26 | then |
---|
27 | RPM_SPECSdir=/usr/local/src/redhat/SPECS; |
---|
28 | fi |
---|
29 | if test x"$RPM_SPECSdir" = x"" ; then |
---|
30 | AC_MSG_ERROR(not found) |
---|
31 | fi |
---|
32 | AC_MSG_RESULT($RPM_SPECSdir) |
---|
33 | AC_SUBST(RPM_SPECSdir) |
---|
34 | |
---|
35 | BINUTILS_VERS="${binutils_version}" |
---|
36 | AC_SUBST(BINUTILS_VERS) |
---|
37 | BINUTILS_RPMVERS=`echo ${binutils_version} | tr '-' '_'` |
---|
38 | AC_SUBST(BINUTILS_RPMVERS) |
---|
39 | BINUTILS_RPMREL="${binutils_rpm_release}" |
---|
40 | AC_SUBST(BINUTILS_RPMREL) |
---|
41 | |
---|
42 | MINGW_VERS="${mingw_version}" |
---|
43 | AC_SUBST(MINGW_VERS) |
---|
44 | MINGW_RPMVERS=`echo ${mingw_version} | tr '-' '_'` |
---|
45 | AC_SUBST(MINGW_RPMVERS) |
---|
46 | MINGW_RPMREL="${mingw_rpm_release}" |
---|
47 | AC_SUBST(MINGW_RPMREL) |
---|
48 | |
---|
49 | W32API_VERS="${w32api_version}" |
---|
50 | AC_SUBST(W32API_VERS) |
---|
51 | W32API_RPMVERS=`echo ${w32api_version} | tr '-' '_'` |
---|
52 | AC_SUBST(W32API_RPMVERS) |
---|
53 | W32API_RPMREL="${w32api_rpm_release}" |
---|
54 | AC_SUBST(W32API_RPMREL) |
---|
55 | |
---|
56 | CYGWIN_VERS="${cygwin_version}" |
---|
57 | AC_SUBST(CYGWIN_VERS) |
---|
58 | CYGWIN_RPMVERS=`echo ${cygwin_version} | tr '-' '_'` |
---|
59 | AC_SUBST(CYGWIN_RPMVERS) |
---|
60 | CYGWIN_RPMREL="${cygwin_rpm_release}" |
---|
61 | AC_SUBST(CYGWIN_RPMREL) |
---|
62 | |
---|
63 | GCC_VERS="${gcc_version}" |
---|
64 | AC_SUBST(GCC_VERS) |
---|
65 | GCC_RPMVERS=`echo ${gcc_version} | tr '-' '_'` |
---|
66 | AC_SUBST(GCC_RPMVERS) |
---|
67 | GCC_RPMREL="${gcc_rpm_release}" |
---|
68 | AC_SUBST(GCC_RPMREL) |
---|
69 | |
---|
70 | RPM_BUILD_ROOT="$rpm_build_root/%{name}-root" |
---|
71 | AC_SUBST(RPM_BUILD_ROOT) |
---|
72 | |
---|
73 | AC_CONFIG_FILES([Makefile |
---|
74 | i686-pc-cygwin-binutils.spec |
---|
75 | i686-pc-cygwin-libs.spec |
---|
76 | i686-pc-cygwin-w32api.spec |
---|
77 | i686-pc-cygwin-gcc.spec |
---|
78 | i686-pc-cygwin-mingw.spec |
---|
79 | ]) |
---|
80 | AC_OUTPUT |
---|