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