source: rtems/doc/configure.ac @ b08dc265

4.104.114.84.95
Last change on this file since b08dc265 was b08dc265, checked in by Joel Sherrill <joel.sherrill@…>, on 01/07/04 at 19:22:54

2004-01-07 Joel Sherrill <joel@…>

  • configure.ac, index.html.in: mips64orion port removed as mips port more completely covers the MIPS family.
  • rtems_support.html.in: Removed.
  • 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([
175index.html
176FAQ/Makefile
177develenv/Makefile
178user/Makefile
179bsp_howto/Makefile])
180
181AC_CONFIG_FILES([started/Makefile],[],[
182test -d started || mkdir started
183cat << EOF > started/tversions.sed~
184:t
185s/@GCCVERSION@/$gcc3_version/;t t
186s/@BINUTILSVERSION@/$binutils_version/;t t
187s/@NEWLIBVERSION@/$gcc3newlib_version/;t t
188s/@GDBVERSION@/$gdb_version/;t t
189s/@SETBINUTILSPATCHVERSION@/$set_binutils_patch/;t t
190s/@SETGCCPATCHVERSION@/$set_gcc_patch/;t t
191s/@SETNEWLIBPATCHVERSION@/$set_newlib_patch/;t t
192s/@SETGDBPATCHVERSION@/$set_gdb_patch/;t t
193s/@GCCRPMRELEASE@/$gcc3newlib_rpm_release/;t t
194s/@BINUTILSRPMRELEASE@/$binutils_rpm_release/;t t
195s/@GDBRPMRELEASE@/$gdb_rpm_release/;t t
196EOF
197_RTEMS_UPDATE_CONDITIONAL([started/tversions.sed],[started/tversions.sed~])
198])
199
200AC_CONFIG_FILES([
201porting/Makefile
202networking/Makefile
203posix_users/Makefile
204posix1003.1/Makefile
205filesystem/Makefile
206itron3.0/Makefile
207ada_user/Makefile
208started_ada/Makefile
209rtems_gdb/Makefile
210rgdb_specs/Makefile
211relnotes/Makefile
212new_chapters/Makefile
213supplements/Makefile
214supplements/arm/Makefile
215supplements/c4x/Makefile
216supplements/i386/Makefile
217supplements/i960/Makefile
218supplements/m68k/Makefile
219supplements/mips/Makefile
220supplements/powerpc/Makefile
221supplements/sh/Makefile
222supplements/sparc/Makefile
223supplements/template/Makefile
224gnu_docs/Makefile
225])
226AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.