source: rtems/doc/configure.ac @ 810720b6

4.104.114.84.95
Last change on this file since 810720b6 was 810720b6, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 12, 2003 at 3:28:02 AM

2003-12-12 Ralf Corsepius <corsepiu@…>

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