source: rtems/doc/configure.ac @ df631170

4.115
Last change on this file since df631170 was df631170, checked in by Joel Sherrill <joel.sherrill@…>, on 12/14/10 at 16:51:17

2010-12-14 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, configure.ac, common/cpright.texi, common/rtems.texi.in, cpu_supplement/.cvsignore, started/Makefile.am, started/binaries.t, started/buildc.t, started/buildrt.t, started/intro.t, started/nextstep.t, started/nt.t, started/require.t, started/sample.t, started/started.texi, started/version.texi: Major update which includes removal of references to specific tool versions and patches.
  • started/tversions.texi.in: Removed.
  • Property mode set to 100644
File size: 3.2 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2
3AC_PREREQ(2.60)
4
5AC_INIT([rtems-doc],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla])
6AC_CONFIG_SRCDIR([project.am])
7RTEMS_TOP([..])
8
9AM_INIT_AUTOMAKE([no-define foreign 1.10])
10AM_MAINTAINER_MODE
11
12RTEMS_ENABLE_RPMPREFIX
13
14AC_ARG_ENABLE(html,
15[  --disable-html          disable html support ],
16[case $enableval in
17yes) ;;
18no) ;;
19*) AC_MSG_ERROR("invalid value");;
20esac],
21[enable_html="yes"]
22)
23
24AC_ARG_ENABLE(dvi,
25[  --disable-dvi           disable dvi support ],
26[case $enableval in
27yes) ;;
28no) ;;
29*) AC_MSG_ERROR("invalid value");;
30esac],
31[enable_dvi="yes"]
32)
33
34AC_ARG_ENABLE(pdf,
35[  --disable-pdf           disable pdf support ],
36[case $enableval in
37yes) ;;
38no) ;;
39*) AC_MSG_ERROR("invalid value");;
40esac],
41[enable_pdf="yes"]
42)
43
44AC_ARG_ENABLE(ps,
45[  --disable-ps            disable ps support ],
46[case $enableval in
47yes) ;;
48no) ;;
49*) AC_MSG_ERROR("invalid value");;
50esac],
51[enable_ps="yes"]
52)
53
54AC_ARG_ENABLE(papersize,
55[  --enable-papersize=[letter|a4|]    set papersize [default:system defaults]],
56[case $enableval in
57a4) papersize=a4 ;;
58letter) papersize=letter ;;
59yes) papersize= ;;
60no) papersize= ;;
61*) AC_MSG_ERROR([Invalid papersize])
62;;
63esac],
64[papersize=]
65)
66
67pkgdocdir="\$(datadir)/rtems"
68AC_SUBST(pkgdocdir)
69
70htmldir="\$(pkgdocdir)/html"
71AC_SUBST(htmldir)
72
73dnl Checks for programs.
74AC_PROG_LN_S
75
76AC_CHECK_PROGS(PERL,perl)
77
78TEXI2WWW='$(PERL) $(top_srcdir)/tools/texi2www/texi2www'
79AC_SUBST(TEXI2WWW)
80
81AC_CHECK_PROGS(GS,gs)
82AM_CONDITIONAL(GS,test x"$GS" != x"")
83
84AC_CHECK_PROGS(TEXI2DVI,texi2dvi)
85AM_CONDITIONAL(TEXI2DVI,test x"$TEXI2DVI" != x"")
86
87AC_CHECK_PROGS(EPSTOPDF,epstopdf)
88AM_CONDITIONAL(EPSTOPDF,
89  test "$enable_pdf" = "yes" \
90    && test x"$EPSTOPDF" != x"" )
91
92AC_CHECK_PROGS(TEXI2PDF,texi2pdf)
93AM_CONDITIONAL(TEXI2PDF,
94  test "$enable_pdf" = "yes" \
95    && test x"$TEXI2PDF" != x"")
96
97AM_CONDITIONAL(USE_HTML,
98  test "$enable_html" = "yes" \
99     && test x"PERL" != x"" )
100
101AM_CONDITIONAL(USE_DVI,
102  test "$enable_dvi" = "yes" \
103    && test x"$TEXI2DVI" != x"" )
104
105AM_CONDITIONAL(USE_PS,
106  test "$enable_ps" = "yes" \
107    && test x"$TEXI2DVI" != x"" )
108
109AM_CONDITIONAL(USE_PDF,
110  test "$enable_pdf" = "yes" \
111    && test x"$TEXI2DVI" != x"" \
112    && test x"$TEXI2PDF" != x"" )
113
114case $papersize in
115a4)
116  TEXI2DVI="${TEXI2DVI} --texinfo=@afourpaper"
117  TEXI2PDF="${TEXI2PDF} --texinfo=@afourpaper"
118  DVIPS="dvips -t a4"
119;;
120letter)
121  DVIPS="dvips -t letter"
122  ;;
123*)
124  DVIPS="dvips"
125;;
126esac
127AC_SUBST(DVIPS)
128
129BMENU2='$(top_builddir)/tools/bmenu/bmenu2'
130AC_SUBST(BMENU2)
131
132dnl Checks for libraries.
133
134dnl Checks for header files.
135
136dnl Checks for typedefs, structures, and compiler characteristics.
137
138dnl Checks for library functions.
139
140AC_CONFIG_SUBDIRS(tools)
141
142AC_CONFIG_FILES([Makefile],[],[
143test -d common || mkdir common
144cat << EOF > common/rtems.sed~
145:t
146s/@RTEMSAPI@/RTEMS_API/;t t
147s,@RTEMSPREFIX@,$prefix,;t t
148s,@RTEMSRPMPREFIX@,$rpmprefix,;t t
149EOF
150_RTEMS_UPDATE_CONDITIONAL([common/rtems.sed],[common/rtems.sed~])
151])
152
153AC_CONFIG_FILES([
154index.html
155develenv/Makefile
156user/Makefile
157bsp_howto/Makefile])
158
159AC_CONFIG_FILES([
160porting/Makefile
161networking/Makefile
162posix_users/Makefile
163posix1003.1/Makefile
164filesystem/Makefile
165ada_user/Makefile
166started/Makefile
167relnotes/Makefile
168new_chapters/Makefile
169cpu_supplement/Makefile
170shell/Makefile
171])
172AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.