source: rtems/doc/configure.ac @ d8f0aa16

4.104.114.84.95
Last change on this file since d8f0aa16 was d8f0aa16, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 23, 2006 at 7:23:30 PM

2006-08-23 Joel Sherrill <joel@…>

  • Makefile.am, configure.ac, index.html.in: FAQ should now be completely in the Wiki.
  • FAQ/.cvsignore, FAQ/FAQ.texi, FAQ/Makefile.am, FAQ/basic.t, FAQ/bsp.t, FAQ/build45.t, FAQ/concepts.t, FAQ/debug.t, FAQ/endoftime.t, FAQ/entry, FAQ/freesw.t, FAQ/hwdebugaids.t, FAQ/projects.t, FAQ/stamp-vti, FAQ/tools.t, FAQ/version.texi, common/timemac.texi, common/timetbl.t, common/timing.t: Removed.
  • Property mode set to 100644
File size: 4.8 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2
3AC_PREREQ(2.59)
4
5AC_INIT([rtems-doc],[_RTEMS_VERSION],[rtems-bugs@rtems.com])
6AC_CONFIG_SRCDIR([project.am])
7RTEMS_TOP([..])
8
9AM_INIT_AUTOMAKE([no-define foreign 1.9])
10AM_MAINTAINER_MODE
11
12RTEMS_ENABLE_RPMPREFIX
13
14AC_ARG_ENABLE(html,
15[  --disable-html          disable html support ],
16[case $enableval in
17yes) ;;
18no) ;;
19*) AC_MSG_ERROR("invalid value");;
20esac],
21[enable_html="yes"]
22)
23
24AC_ARG_ENABLE(dvi,
25[  --disable-dvi           disable dvi support ],
26[case $enableval in
27yes) ;;
28no) ;;
29*) AC_MSG_ERROR("invalid value");;
30esac],
31[enable_dvi="yes"]
32)
33
34AC_ARG_ENABLE(pdf,
35[  --disable-pdf           disable pdf support ],
36[case $enableval in
37yes) ;;
38no) ;;
39*) AC_MSG_ERROR("invalid value");;
40esac],
41[enable_pdf="yes"]
42)
43
44AC_ARG_ENABLE(ps,
45[  --disable-ps            disable ps support ],
46[case $enableval in
47yes) ;;
48no) ;;
49*) AC_MSG_ERROR("invalid value");;
50esac],
51[enable_ps="yes"]
52)
53
54AC_ARG_ENABLE(papersize,
55[  --enable-papersize=[letter|a4|]    set papersize [default:system defaults]],
56[case $enableval in
57a4) papersize=a4 ;;
58letter) papersize=letter ;;
59yes) papersize= ;;
60no) papersize= ;;
61*) AC_MSG_ERROR([Invalid papersize])
62;;
63esac],
64[papersize=]
65)
66
67pkgdocdir="\$(datadir)/rtems"
68AC_SUBST(pkgdocdir)
69
70htmldir="\$(pkgdocdir)/html"
71AC_SUBST(htmldir)
72
73dnl Checks for programs.
74AC_PROG_LN_S
75
76AC_CHECK_PROGS(PERL,perl)
77
78TEXI2WWW='$(PERL) $(top_srcdir)/tools/texi2www/texi2www'
79AC_SUBST(TEXI2WWW)
80
81AC_CHECK_PROGS(GS,gs)
82AM_CONDITIONAL(GS,test x"$GS" != x"")
83
84AC_CHECK_PROGS(TEXI2DVI,texi2dvi)
85AM_CONDITIONAL(TEXI2DVI,test x"$TEXI2DVI" != x"")
86
87AC_CHECK_PROGS(EPSTOPDF,epstopdf)
88AM_CONDITIONAL(EPSTOPDF,
89  test "$enable_pdf" = "yes" \
90    && test x"$EPSTOPDF" != x"" )
91
92AC_CHECK_PROGS(TEXI2PDF,texi2pdf)
93AM_CONDITIONAL(TEXI2PDF,
94  test "$enable_pdf" = "yes" \
95    && test x"$TEXI2PDF" != x"")
96
97AM_CONDITIONAL(USE_HTML,
98  test "$enable_html" = "yes" \
99     && test x"PERL" != x"" )
100
101AM_CONDITIONAL(USE_DVI,
102  test "$enable_dvi" = "yes" \
103    && test x"$TEXI2DVI" != x"" )
104
105AM_CONDITIONAL(USE_PS,
106  test "$enable_ps" = "yes" \
107    && test x"$TEXI2DVI" != x"" )
108
109AM_CONDITIONAL(USE_PDF,
110  test "$enable_pdf" = "yes" \
111    && test x"$TEXI2DVI" != x"" \
112    && test x"$TEXI2PDF" != x"" )
113
114case $papersize in
115a4)
116  TEXI2DVI="${TEXI2DVI} --texinfo=@afourpaper"
117  TEXI2PDF="${TEXI2PDF} --texinfo=@afourpaper"
118  DVIPS="dvips -t a4"
119;;
120letter)
121  DVIPS="dvips -t letter"
122  ;;
123*)
124  DVIPS="dvips"
125;;
126esac
127AC_SUBST(DVIPS)
128
129BMENU2='$(top_builddir)/tools/bmenu/bmenu2'
130AC_SUBST(BMENU2)
131
132dnl Checks for libraries.
133
134dnl Checks for header files.
135
136dnl Checks for typedefs, structures, and compiler characteristics.
137
138dnl Checks for library functions.
139
140AC_MSG_CHECKING([for ../scripts/setup.def])
141AS_IF([test -f ${srcdir}/../scripts/setup.def],[
142. ${srcdir}/../scripts/setup.def
143AC_MSG_RESULT([done])
144],[
145AC_MSG_ERROR([missing])
146])
147
148AS_IF([test -z "$binutils_patch_version"],
149[set_binutils_patch="@clear BINUTILSPATCHVERSION"],
150[set_binutils_patch="@set BINUTILSPATCHVERSION $binutils_patch_version"])
151
152AS_IF([test -z "$gcc3newlib_patch_version"],
153[set_newlib_patch="@clear NEWLIBPATCHVERSION"],
154[set_newlib_patch="@set NEWLIBPATCHVERSION $gcc3newlib_patch_version"])
155
156AS_IF([test -z "$gcc3_patch_version"],
157[set_gcc3_patch="@clear GCCPATCHVERSION"],
158[set_gcc_patch="@set GCCPATCHVERSION $gcc3_patch_version"])
159
160AS_IF([test -z "$gdb_patch_version"],
161[set_gdb_patch="@clear GDBPATCHVERSION"],
162[set_gdb_patch="@set GDBPATCHVERSION $gdb_patch_version"])
163
164AC_CONFIG_SUBDIRS(tools)
165
166AC_CONFIG_FILES([Makefile],[],[
167test -d common || mkdir common
168cat << EOF > common/rtems.sed~
169:t
170s/@RTEMSAPI@/RTEMS_API/;t t
171s,@RTEMSPREFIX@,$prefix,;t t
172s,@RTEMSRPMPREFIX@,$rpmprefix,;t t
173s,@RTEMSRPMGROUP@,RTEMS/]RTEMS_API[,;t t
174EOF
175_RTEMS_UPDATE_CONDITIONAL([common/rtems.sed],[common/rtems.sed~])
176])
177
178AC_CONFIG_FILES([
179index.html
180develenv/Makefile
181user/Makefile
182bsp_howto/Makefile])
183
184AC_CONFIG_FILES([started/Makefile],[],[
185test -d started || mkdir started
186cat << EOF > started/tversions.sed~
187:t
188s/@GCCVERSION@/$gcc3_version/;t t
189s/@BINUTILSVERSION@/$binutils_version/;t t
190s/@NEWLIBVERSION@/$gcc3newlib_version/;t t
191s/@GDBVERSION@/$gdb_version/;t t
192s/@SETBINUTILSPATCHVERSION@/$set_binutils_patch/;t t
193s/@SETGCCPATCHVERSION@/$set_gcc_patch/;t t
194s/@SETNEWLIBPATCHVERSION@/$set_newlib_patch/;t t
195s/@SETGDBPATCHVERSION@/$set_gdb_patch/;t t
196s/@GCCRPMRELEASE@/$gcc3newlib_rpm_release/;t t
197s/@BINUTILSRPMRELEASE@/$binutils_rpm_release/;t t
198s/@GDBRPMRELEASE@/$gdb_rpm_release/;t t
199EOF
200_RTEMS_UPDATE_CONDITIONAL([started/tversions.sed],[started/tversions.sed~])
201])
202
203AC_CONFIG_FILES([
204porting/Makefile
205networking/Makefile
206posix_users/Makefile
207posix1003.1/Makefile
208filesystem/Makefile
209itron3.0/Makefile
210ada_user/Makefile
211started_ada/Makefile
212rtems_gdb/Makefile
213rgdb_specs/Makefile
214relnotes/Makefile
215new_chapters/Makefile
216cpu_supplement/Makefile
217gnu_docs/Makefile
218])
219AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.