source: rtems/doc/configure.ac @ fa49393

4.104.114.84.95
Last change on this file since fa49393 was 21e473b, checked in by Joel Sherrill <joel.sherrill@…>, on 01/18/02 at 15:10:54

2002-01-18 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Require automake-1.5.
  • project.am: Reworked.
  • main.am: New.
  • configure.ac: New.
  • configure.in: Removed.
  • bootstrap: Sync with RTEMS's toplevel bootstrap.sh.
  • Property mode set to 100644
File size: 3.3 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2
3AC_PREREQ(2.52)
4
5AC_INIT
6AC_CONFIG_SRCDIR([project.am])
7
8RTEMS_VERSION=4.5.0-beta3
9
10AM_INIT_AUTOMAKE(rtemsdoc,${RTEMS_VERSION},no)
11AM_MAINTAINER_MODE
12
13AC_ARG_ENABLE(html,
14[  --disable-html           disable html support ],
15[case $enableval in
16yes) ;;
17no) ;;
18*) AC_MSG_ERROR("invalid value");;
19esac],
20[enable_html="yes"]
21)
22
23AC_ARG_ENABLE(dvi,
24[  --disable-dvi           disable dvi support ],
25[case $enableval in
26yes) ;;
27no) ;;
28*) AC_MSG_ERROR("invalid value");;
29esac],
30[enable_dvi="yes"]
31)
32
33AC_ARG_ENABLE(pdf,
34[  --disable-pdf           disable pdf support ],
35[case $enableval in
36yes) ;;
37no) ;;
38*) AC_MSG_ERROR("invalid value");;
39esac],
40[enable_pdf="yes"]
41)
42
43AC_ARG_ENABLE(ps,
44[  --disable-ps            disable ps support ],
45[case $enableval in
46yes) ;;
47no) ;;
48*) AC_MSG_ERROR("invalid value");;
49esac],
50[enable_ps="yes"]
51)
52
53AC_ARG_ENABLE(papersize,
54[  --enable-papersize=[letter|a4|]    set papersize [default:system defaults]],
55[case $enableval in
56a4) papersize=a4 ;;
57letter) papersize=letter ;;
58yes) papersize= ;;
59no) papersize= ;;
60*) AC_MSG_ERROR([Invalid papersize])
61;;
62esac],
63[papersize=]
64)
65
66htmldir='$(pkgdatadir)/html'
67AC_SUBST(htmldir)
68
69dnl Checks for programs.
70AC_PROG_LN_S
71
72AC_CHECK_PROGS(PERL,perl)
73
74TEXI2WWW='$(PERL) $(top_srcdir)/tools/texi2www/texi2www'
75AC_SUBST(TEXI2WWW)
76
77AC_CHECK_PROGS(GS,gs)
78AM_CONDITIONAL(GS,test x"$GS" != x"")
79
80AC_CHECK_PROGS(TEXI2DVI,texi2dvi)
81AM_CONDITIONAL(TEXI2DVI,test x"$TEXI2DVI" != x"")
82if test "$enable_pdf" = "yes"; then
83  AC_CHECK_PROGS(EPSTOPDF,epstopdf)
84  AM_CONDITIONAL(EPSTOPDF,test x"$EPSTOPDF" != x"")
85
86  AC_CHECK_PROGS(TEXI2PDF,texi2pdf)
87  AM_CONDITIONAL(TEXI2PDF,test x"$TEXI2PDF" != x"")
88fi
89
90AM_CONDITIONAL(USE_HTML,
91  test "$enable_html" = "yes"  \
92     && test x"PERL" != x"" )
93
94AM_CONDITIONAL(USE_DVI,
95  test "$enable_dvi" = "yes" \
96    && test x"$TEXI2DVI" != x"" )
97
98AM_CONDITIONAL(USE_PS,
99  test "$enable_ps" = "yes" \
100    && test x"$TEXI2DVI" != x"" )
101
102AM_CONDITIONAL(USE_PDF,
103  test "$enable_pdf" = "yes" \
104    && test x"$TEXI2DVI" != x"" \
105    && test x"$TEXI2PDF" != x"" )
106
107case $papersize in
108a4)
109  TEXI2DVI="${TEXI2DVI} --texinfo=@afourpaper"
110  TEXI2PDF="${TEXI2PDF} --texinfo=@afourpaper"
111  DVIPS="dvips -t a4"
112;;
113letter)
114  DVIPS="dvips -t letter"
115  ;;
116*)
117  DVIPS="dvips"
118;;
119esac
120AC_SUBST(DVIPS)
121
122BMENU2='$(top_builddir)/tools/bmenu/bmenu2'
123AC_SUBST(BMENU2)
124
125dnl Checks for libraries.
126
127dnl Checks for header files.
128
129dnl Checks for typedefs, structures, and compiler characteristics.
130
131dnl Checks for library functions.
132
133AC_CONFIG_SUBDIRS(tools)
134
135AC_CONFIG_FILES([Makefile
136rtems_support.html
137index.html
138images/Makefile
139common/Makefile
140FAQ/Makefile
141develenv/Makefile
142user/Makefile
143bsp_howto/Makefile
144started/Makefile
145started/pictures/Makefile
146porting/Makefile
147networking/Makefile
148posix_users/Makefile
149posix1003.1/Makefile
150filesystem/Makefile
151itron3.0/Makefile
152ada_user/Makefile
153started_ada/Makefile
154rtems_gdb/Makefile
155rgdb_specs/Makefile
156relnotes/Makefile
157new_chapters/Makefile
158supplements/Makefile
159supplements/hppa1_1/Makefile
160supplements/i386/Makefile
161supplements/i960/Makefile
162supplements/m68k/Makefile
163supplements/mips64orion/Makefile
164supplements/powerpc/Makefile
165supplements/sh/Makefile
166supplements/sparc/Makefile
167supplements/template/Makefile
168gnu_docs/Makefile
169src2html/Makefile
170])
171AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.