source: rtems/doc/configure.ac @ 2106fc7

4.104.114.84.95
Last change on this file since 2106fc7 was 2106fc7, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/08/02 at 09:04:43

2002-12-08 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Merge-in images/Makefile.am, common/Makefile.am.
  • images/Makefile.am: Remove.
  • common/Makefile.am: Remove.
  • configure.ac: Reflect changes above.
  • main.am: Append -I $(topsrc_dir) to AM_MAKEINFOFLAGS.
  • Property mode set to 100644
File size: 3.4 KB
RevLine 
[2ba8875]1dnl Process this file with autoconf to produce a configure script.
2
[21e473b]3AC_PREREQ(2.52)
[2ba8875]4
[7273b6e]5AC_INIT([rtems-doc],[_RTEMS_VERSION],[rtems-bugs@OARcorp.com])
[21e473b]6AC_CONFIG_SRCDIR([project.am])
[cf10399]7RTEMS_TOP([..])
8AC_CONFIG_AUX_DIR([..])
[2ba8875]9
[7273b6e]10AM_INIT_AUTOMAKE([no-define foreign 1.6])
[fc76a6aa]11AM_MAINTAINER_MODE
[a4ad9487]12
[2ba8875]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
[e90e428]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
[fb56a37]66pkgdocdir="\$(datadir)/rtems"
67AC_SUBST(pkgdocdir)
68
69htmldir="\$(pkgdocdir)/html"
[2ba8875]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"")
85if test "$enable_pdf" = "yes"; then
86  AC_CHECK_PROGS(EPSTOPDF,epstopdf)
87  AM_CONDITIONAL(EPSTOPDF,test x"$EPSTOPDF" != x"")
88
89  AC_CHECK_PROGS(TEXI2PDF,texi2pdf)
90  AM_CONDITIONAL(TEXI2PDF,test x"$TEXI2PDF" != x"")
91fi
92
93AM_CONDITIONAL(USE_HTML,
94  test "$enable_html" = "yes"  \
95     && test x"PERL" != x"" )
96
97AM_CONDITIONAL(USE_DVI,
98  test "$enable_dvi" = "yes" \
99    && test x"$TEXI2DVI" != x"" )
100
101AM_CONDITIONAL(USE_PS,
102  test "$enable_ps" = "yes" \
103    && test x"$TEXI2DVI" != x"" )
104
105AM_CONDITIONAL(USE_PDF,
106  test "$enable_pdf" = "yes" \
107    && test x"$TEXI2DVI" != x"" \
108    && test x"$TEXI2PDF" != x"" )
109
[e90e428]110case $papersize in
111a4)
112  TEXI2DVI="${TEXI2DVI} --texinfo=@afourpaper"
113  TEXI2PDF="${TEXI2PDF} --texinfo=@afourpaper"
114  DVIPS="dvips -t a4"
115;;
116letter)
117  DVIPS="dvips -t letter"
118  ;;
119*)
120  DVIPS="dvips"
121;;
122esac
123AC_SUBST(DVIPS)
124
[a4ad9487]125BMENU2='$(top_builddir)/tools/bmenu/bmenu2'
126AC_SUBST(BMENU2)
[2ba8875]127
128dnl Checks for libraries.
129
130dnl Checks for header files.
131
132dnl Checks for typedefs, structures, and compiler characteristics.
133
134dnl Checks for library functions.
135
136AC_CONFIG_SUBDIRS(tools)
137
[21e473b]138AC_CONFIG_FILES([Makefile
[2ba8875]139rtems_support.html
140index.html
141FAQ/Makefile
142develenv/Makefile
143user/Makefile
144bsp_howto/Makefile
145started/Makefile
146started/pictures/Makefile
147porting/Makefile
148networking/Makefile
149posix_users/Makefile
150posix1003.1/Makefile
151filesystem/Makefile
152itron3.0/Makefile
153ada_user/Makefile
154started_ada/Makefile
155rtems_gdb/Makefile
156rgdb_specs/Makefile
157relnotes/Makefile
158new_chapters/Makefile
159supplements/Makefile
[24c63648]160supplements/arm/Makefile
[2ba8875]161supplements/hppa1_1/Makefile
162supplements/i386/Makefile
163supplements/i960/Makefile
164supplements/m68k/Makefile
[b40b8808]165supplements/mips/Makefile
[2ba8875]166supplements/mips64orion/Makefile
167supplements/powerpc/Makefile
168supplements/sh/Makefile
169supplements/sparc/Makefile
170supplements/template/Makefile
171gnu_docs/Makefile
172src2html/Makefile
[21e473b]173])
174AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.