source: rtems/doc/configure.ac @ 21595c7

Last change on this file since 21595c7 was 21595c7, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 15, 2003 at 6:09:43 AM

2003-02-15 Ralf Corsepius <corsepiu@…>

  • configure.ac: Unconditionally check for epstopdf and texi2pdf.
  • Property mode set to 100644
File size: 3.4 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2
3AC_PREREQ(2.57)
4
5AC_INIT([rtems-doc],[_RTEMS_VERSION],[rtems-bugs@OARcorp.com])
6AC_CONFIG_SRCDIR([project.am])
7RTEMS_TOP([..])
8AC_CONFIG_AUX_DIR([..])
9
10AM_INIT_AUTOMAKE([no-define foreign 1.7.2])
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
66pkgdocdir="\$(datadir)/rtems"
67AC_SUBST(pkgdocdir)
68
69htmldir="\$(pkgdocdir)/html"
70AC_SUBST(htmldir)
71
72dnl Checks for programs.
73AC_PROG_LN_S
74
75AC_CHECK_PROGS(PERL,perl)
76
77TEXI2WWW='$(PERL) $(top_srcdir)/tools/texi2www/texi2www'
78AC_SUBST(TEXI2WWW)
79
80AC_CHECK_PROGS(GS,gs)
81AM_CONDITIONAL(GS,test x"$GS" != x"")
82
83AC_CHECK_PROGS(TEXI2DVI,texi2dvi)
84AM_CONDITIONAL(TEXI2DVI,test x"$TEXI2DVI" != x"")
85
86AC_CHECK_PROGS(EPSTOPDF,epstopdf)
87AM_CONDITIONAL(EPSTOPDF,
88  test "$enable_pdf" = "yes" \
89    && test x"$EPSTOPDF" != x"" )
90
91AC_CHECK_PROGS(TEXI2PDF,texi2pdf)
92AM_CONDITIONAL(TEXI2PDF,
93  test "$enable_pdf" = "yes" \
94    && test x"$TEXI2PDF" != x"")
95
96AM_CONDITIONAL(USE_HTML,
97  test "$enable_html" = "yes" \
98     && test x"PERL" != x"" )
99
100AM_CONDITIONAL(USE_DVI,
101  test "$enable_dvi" = "yes" \
102    && test x"$TEXI2DVI" != x"" )
103
104AM_CONDITIONAL(USE_PS,
105  test "$enable_ps" = "yes" \
106    && test x"$TEXI2DVI" != x"" )
107
108AM_CONDITIONAL(USE_PDF,
109  test "$enable_pdf" = "yes" \
110    && test x"$TEXI2DVI" != x"" \
111    && test x"$TEXI2PDF" != x"" )
112
113case $papersize in
114a4)
115  TEXI2DVI="${TEXI2DVI} --texinfo=@afourpaper"
116  TEXI2PDF="${TEXI2PDF} --texinfo=@afourpaper"
117  DVIPS="dvips -t a4"
118;;
119letter)
120  DVIPS="dvips -t letter"
121  ;;
122*)
123  DVIPS="dvips"
124;;
125esac
126AC_SUBST(DVIPS)
127
128BMENU2='$(top_builddir)/tools/bmenu/bmenu2'
129AC_SUBST(BMENU2)
130
131dnl Checks for libraries.
132
133dnl Checks for header files.
134
135dnl Checks for typedefs, structures, and compiler characteristics.
136
137dnl Checks for library functions.
138
139AC_CONFIG_SUBDIRS(tools)
140
141AC_CONFIG_FILES([Makefile
142rtems_support.html
143index.html
144FAQ/Makefile
145develenv/Makefile
146user/Makefile
147bsp_howto/Makefile
148started/Makefile
149porting/Makefile
150networking/Makefile
151posix_users/Makefile
152posix1003.1/Makefile
153filesystem/Makefile
154itron3.0/Makefile
155ada_user/Makefile
156started_ada/Makefile
157rtems_gdb/Makefile
158rgdb_specs/Makefile
159relnotes/Makefile
160new_chapters/Makefile
161supplements/Makefile
162supplements/arm/Makefile
163supplements/c4x/Makefile
164supplements/hppa1_1/Makefile
165supplements/i386/Makefile
166supplements/i960/Makefile
167supplements/m68k/Makefile
168supplements/mips/Makefile
169supplements/mips64orion/Makefile
170supplements/powerpc/Makefile
171supplements/sh/Makefile
172supplements/sparc/Makefile
173supplements/template/Makefile
174gnu_docs/Makefile
175src2html/Makefile
176])
177AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.